summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp_font.c')
-rw-r--r--xrdp/xrdp_font.c8
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);
}