summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-09-15 05:34:45 +0000
committerjsorg71 <jsorg71>2007-09-15 05:34:45 +0000
commit0427addc1628cc1ddf1c1c416409f6bd9ac660b1 (patch)
treec0701661e324bab7664bb6395eb649db5151df3b /xrdp
parent6c74a22ca11488e08de9c9c24e518f8398ade07c (diff)
downloadxrdp-proprietary-0427addc1628cc1ddf1c1c416409f6bd9ac660b1.tar.gz
xrdp-proprietary-0427addc1628cc1ddf1c1c416409f6bd9ac660b1.zip
read larger font files
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_font.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c
index 6443a8fb..2186128a 100644
--- a/xrdp/xrdp_font.c
+++ b/xrdp/xrdp_font.c
@@ -78,11 +78,11 @@ xrdp_font_create(struct xrdp_wm* wm)
self = (struct xrdp_font*)g_malloc(sizeof(struct xrdp_font), 1);
self->wm = wm;
make_stream(s);
- init_stream(s, 8192 * 2);
+ init_stream(s, 1024 * 64);
fd = g_file_open("sans-10.fv1");
if (fd != -1)
{
- b = g_file_read(fd, s->data, 8192 * 2);
+ b = g_file_read(fd, s->data, 1024 * 64);
g_file_close(fd);
if (b > 0)
{
@@ -112,7 +112,8 @@ xrdp_font_create(struct xrdp_wm* wm)
{
/* shouldn't happen */
g_writeln("error in xrdp_font_create, datasize wrong");
- g_writeln("%d %d %d", f->width, f->height, datasize);
+ g_writeln("width %d height %d datasize %d index %d",
+ f->width, f->height, datasize, index);
break;
}
if (s_check_rem(s, datasize))