summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_mm.c
diff options
context:
space:
mode:
authorJim Grandy <jgrandy@authentic8.com>2013-07-03 15:57:00 -0700
committerJim Grandy <jgrandy@authentic8.com>2013-08-22 12:52:24 -0700
commit45b0bc9f17f0788bdfe28c0ae687faa0bce9374f (patch)
treea2f2e71699615e2320cfb5ab0060ebde37cc3bc8 /xrdp/xrdp_mm.c
parent1ae9a7f2b685a8c2bf052e7c1724811346189fb9 (diff)
downloadxrdp-proprietary-45b0bc9f17f0788bdfe28c0ae687faa0bce9374f.tar.gz
xrdp-proprietary-45b0bc9f17f0788bdfe28c0ae687faa0bce9374f.zip
Hand-apply patches (glyph cache) from Authentic8 branch: 653869c 30f23d4 74b015d 4e51e6d 2829087
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r--xrdp/xrdp_mm.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index 67c53a28..88f888c7 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -413,6 +413,7 @@ xrdp_mm_setup_mod1(struct xrdp_mm *self)
self->mod->server_notify_new_update = server_notify_new_update;
self->mod->server_notify_delete = server_notify_delete;
self->mod->server_monitored_desktop = server_monitored_desktop;
+ self->mod->server_add_char_alpha = server_add_char_alpha;
}
}
@@ -2293,6 +2294,7 @@ server_add_char(struct xrdp_mod *mod, int font, int charactor,
fi.height = height;
fi.incby = 0;
fi.data = data;
+ fi.bpp = 1;
return libxrdp_orders_send_font(((struct xrdp_wm *)mod->wm)->session,
&fi, font, charactor);
}
@@ -2890,3 +2892,23 @@ server_monitored_desktop(struct xrdp_mod *mod,
wm = (struct xrdp_wm *)(mod->wm);
return libxrdp_monitored_desktop(wm->session, mdo, flags);
}
+
+/*****************************************************************************/
+int DEFAULT_CC
+server_add_char_alpha(struct xrdp_mod* mod, int font, int charactor,
+ int offset, int baseline,
+ int width, int height, char* data)
+{
+ struct xrdp_font_char fi;
+
+ fi.offset = offset;
+ fi.baseline = baseline;
+ fi.width = width;
+ fi.height = height;
+ fi.incby = 0;
+ fi.data = data;
+ fi.bpp = 8;
+ return libxrdp_orders_send_font(((struct xrdp_wm*)mod->wm)->session,
+ &fi, font, charactor);
+}
+