diff options
author | jsorg71 <jsorg71> | 2005-02-11 02:54:26 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-02-11 02:54:26 +0000 |
commit | 8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c (patch) | |
tree | 9639e1ff243c53e9bb8351c6d2e7a4149a018f4c /xrdp/xrdp_painter.c | |
parent | cf6e2abd416c26105396fa0dd1834e3879fa2e08 (diff) | |
download | xrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.tar.gz xrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.zip |
fix some crashes and added some debug messages
Diffstat (limited to 'xrdp/xrdp_painter.c')
-rw-r--r-- | xrdp/xrdp_painter.c | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index 1863db4c..f5f9dcff 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -381,6 +381,20 @@ int xrdp_painter_draw_bitmap(struct xrdp_painter* self, y1 = 0; } //g_printf("%d %d %d %d %d %d\n", x1, y1, w, h, srcx, srcy); + DEBUG(("sending memblt order \n\r\ + cache_id %d\n\r\ + palette_id %d\n\r\ + x %d\n\r\ + y %d\n\r\ + cx %d\n\r\ + cy %d\n\r\ + rop %d\n\r\ + srcx %d\n\r\ + srcy %d\n\r\ + cache_idx %d\n\r", + cache_id, palette_id, + x1, y1, w, h, self->rop, srcx, srcy, + cache_idx)); xrdp_orders_mem_blt(self->orders, cache_id, palette_id, x1, y1, w, h, self->rop, srcx, srcy, cache_idx, &rect1); @@ -554,19 +568,27 @@ int xrdp_painter_draw_text(struct xrdp_painter* self, y1 = y + total_height; draw_rect.right--; draw_rect.bottom--; - flags = 0x03; /* 0x73; TEXT2_IMPLICIT_X and something else */ - DEBUG(("sending text order \ -font %d flags %d mixmode %d color1 %d color2 %d \ -clip left %d clip top %d clip right %d clip bottom %d \ -box left %d box top %d box right %d box bottom %d \ -x %d y %d len %d rect %d %d %d %d\n\r", - f, flags, 0, font->color, 0, x, y, x + total_width, - y + total_height, 0, 0, 0, 0, x1, y1, len, + flags = 0x03; /* 0x03 0x73; TEXT2_IMPLICIT_X and something else */ + DEBUG(("sending text order\n\r\ + font %d\n\r\ + flags %d\n\r\ + mixmode %d\n\r\ + color1 %d\n\r\ + color2 %d\n\r\ + clip box %d %d %d %d\n\r\ + box box %d %d %d %d\n\r\ + x %d\n\r\ + y %d\n\r\ + len %d\n\r\ + rect %d %d %d %d\n\r", + f, flags, 0, font->color, 0, x, y, + x + total_width, y + total_height, + 0, 0, 0, 0, x1, y1, len, draw_rect.left, draw_rect.top, draw_rect.right, draw_rect.bottom)); xrdp_orders_text(self->orders, f, flags, 0, font->color, 0, - x, y, x + total_width, y + total_height, + x - 1, y - 1, x + total_width, y + total_height, 0, 0, 0, 0, x1, y1, data, len * 2, &draw_rect); } |