diff options
author | jsorg71 <jsorg71> | 2004-10-25 03:23:48 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2004-10-25 03:23:48 +0000 |
commit | b95482e72906c7bea907f19ef81a659ba37497cc (patch) | |
tree | 4839b3bce873a8590c7c710a97d750a8a58da1b7 /xrdp/xrdp_painter.c | |
parent | b4b62a619a2a7c52c1975580272646c7ae2111e6 (diff) | |
download | xrdp-proprietary-b95482e72906c7bea907f19ef81a659ba37497cc.tar.gz xrdp-proprietary-b95482e72906c7bea907f19ef81a659ba37497cc.zip |
work on logon edits
Diffstat (limited to 'xrdp/xrdp_painter.c')
-rw-r--r-- | xrdp/xrdp_painter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index 9ea7d46a..b3508fff 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -347,7 +347,7 @@ int xrdp_painter_text_width(struct xrdp_painter* self, char* text) len = g_strlen(text); for (index = 0; index < len; index++) { - font_item = self->font->font_items + text[index]; + font_item = self->font->font_items + (unsigned char)text[index]; rv = rv + font_item->incby; } return rv; @@ -365,7 +365,7 @@ int xrdp_painter_text_height(struct xrdp_painter* self, char* text) len = g_strlen(text); for (index = 0; index < len; index++) { - font_item = self->font->font_items + text[index]; + font_item = self->font->font_items + (unsigned char)text[index]; rv = MAX(rv, font_item->height); } return rv; @@ -412,7 +412,7 @@ int xrdp_painter_draw_text(struct xrdp_painter* self, data = (char*)g_malloc(len * 4, 1); for (index = 0; index < len; index++) { - font_item = font->font_items + text[index]; + font_item = font->font_items + (unsigned char)text[index]; i = xrdp_cache_add_char(self->wm->cache, font_item); f = HIWORD(i); c = LOWORD(i); |