summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2010-11-25 18:28:43 -0800
committerJay Sorg <jay.sorg@gmail.com>2010-11-25 18:28:43 -0800
commitdd6a0988b78ef7846ab2a09a7bc4cca19576ac4b (patch)
tree307ac53ae0d630db1bbf209804647e5eebeef309 /xrdp
parent0ed29ac0cc8172350d0a25444bac904716702cac (diff)
downloadxrdp-proprietary-dd6a0988b78ef7846ab2a09a7bc4cca19576ac4b.tar.gz
xrdp-proprietary-dd6a0988b78ef7846ab2a09a7bc4cca19576ac4b.zip
variable drop down menu size
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_bitmap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xrdp/xrdp_bitmap.c b/xrdp/xrdp_bitmap.c
index df2f9e51..cee6f40b 100644
--- a/xrdp/xrdp_bitmap.c
+++ b/xrdp/xrdp_bitmap.c
@@ -1313,6 +1313,16 @@ xrdp_bitmap_invalidate(struct xrdp_bitmap* self, struct xrdp_rect* rect)
}
else if (self->type == WND_TYPE_SPECIAL) /* 8 special */
{
+ if (self->popped_from != 0)
+ {
+ /* change height if there are too many items in the list */
+ i = xrdp_painter_text_height(painter, "W");
+ i = self->popped_from->string_list->count * i;
+ if (i > self->height)
+ {
+ self->height = i;
+ }
+ }
painter->fg_color = self->wm->white;
xrdp_painter_fill_rect(painter, self, 0, 0, self->width, self->height);
/* draw the list items */