From 23b4bb18aef607cc27d0a925d7815a6ea6d1ea34 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sat, 11 Feb 2006 02:12:15 +0000 Subject: added cursor function --- xup/xup.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xup/xup.c b/xup/xup.c index 2837f60b..92a5a16c 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -332,6 +332,8 @@ lib_mod_signal(struct mod* mod) int x2; int y2; char* bmpdata; + char cur_data[32 * (32 * 3)]; + char cur_mask[32 * (32 / 8)]; DEBUG(("in lib_mod_signal\r\n")); make_stream(s); @@ -420,6 +422,13 @@ lib_mod_signal(struct mod* mod) in_sint16_le(s, y2); rv = mod->server_draw_line(mod, x1, y1, x2, y2); break; + case 19: + in_sint16_le(s, x); + in_sint16_le(s, y); + in_uint8a(s, cur_data, 32 * (32 * 3)); + in_uint8a(s, cur_mask, 32 * (32 / 8)); + rv = mod->server_set_cursor(mod, x, y, cur_data, cur_mask); + break; default: rv = 1; break; -- cgit v1.2.1