diff options
| author | jsorg71 <jsorg71> | 2007-09-23 07:02:19 +0000 |
|---|---|---|
| committer | jsorg71 <jsorg71> | 2007-09-23 07:02:19 +0000 |
| commit | f4024fc9265661f33ec73dd7b6a56a169fce3855 (patch) | |
| tree | f655d88a443c109466b0f9c5ee1f5b7a90cba8d1 /xrdp/xrdp_font.c | |
| parent | d1d5aac19c4bd961aa4e4a85e37b7f8a31992a24 (diff) | |
| download | xrdp-proprietary-f4024fc9265661f33ec73dd7b6a56a169fce3855.tar.gz xrdp-proprietary-f4024fc9265661f33ec73dd7b6a56a169fce3855.zip | |
unicode
Diffstat (limited to 'xrdp/xrdp_font.c')
| -rw-r--r-- | xrdp/xrdp_font.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c index 2186128a..34c8b213 100644 --- a/xrdp/xrdp_font.c +++ b/xrdp/xrdp_font.c @@ -75,14 +75,15 @@ xrdp_font_create(struct xrdp_wm* wm) int datasize; struct xrdp_font_char* f; + DEBUG(("in xrdp_font_create")); self = (struct xrdp_font*)g_malloc(sizeof(struct xrdp_font), 1); self->wm = wm; make_stream(s); - init_stream(s, 1024 * 64); + init_stream(s, 1024 * 256); fd = g_file_open("sans-10.fv1"); if (fd != -1) { - b = g_file_read(fd, s->data, 1024 * 64); + b = g_file_read(fd, s->data, 1024 * 256); g_file_close(fd); if (b > 0) { @@ -138,6 +139,7 @@ xrdp_font_create(struct xrdp_wm* wm) self->font_items[0].data = g_malloc(3 * 16, 0); g_memcpy(self->font_items[0].data, w_char, 3 * 16); */ + DEBUG(("out xrdp_font_create")); return self; } @@ -152,7 +154,7 @@ xrdp_font_delete(struct xrdp_font* self) { return; } - for (i = 0; i < 256; i++) + for (i = 0; i < NUM_FONTS; i++) { g_free(self->font_items[i].data); } |
