diff options
author | jsorg71 <jsorg71> | 2007-09-26 07:22:14 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-09-26 07:22:14 +0000 |
commit | 62e47c6de0b840f194e5fcc68663acfaeea8ad68 (patch) | |
tree | 93c4b6d750ad3932027c625b8c96c256e583776b /xrdp/xrdp_painter.c | |
parent | 4aab3a34447c8ed829f269220930074338ab46a7 (diff) | |
download | xrdp-proprietary-62e47c6de0b840f194e5fcc68663acfaeea8ad68.tar.gz xrdp-proprietary-62e47c6de0b840f194e5fcc68663acfaeea8ad68.zip |
font changes, no color in font struct, wm default font, etc
Diffstat (limited to 'xrdp/xrdp_painter.c')
-rw-r--r-- | xrdp/xrdp_painter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index 7fb23621..f9bf8839 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -44,7 +44,6 @@ xrdp_painter_delete(struct xrdp_painter* self) { return; } - xrdp_font_delete(self->font); g_free(self); } @@ -70,7 +69,7 @@ xrdp_painter_font_needed(struct xrdp_painter* self) { if (self->font == 0) { - self->font = xrdp_font_create(self->wm); + self->font = self->wm->default_font; } return 0; } @@ -411,7 +410,7 @@ xrdp_painter_draw_text(struct xrdp_painter* self, y1 = y + total_height; flags = 0x03; /* 0x03 0x73; TEXT2_IMPLICIT_X and something else */ libxrdp_orders_text(self->session, f, flags, 0, - font->color, 0, + self->fg_color, 0, x - 1, y - 1, x + total_width, y + total_height, 0, 0, 0, 0, x1, y1, data, len * 2, &draw_rect); |