rfx: work on rfx

This commit is contained in:
Jay Sorg
2012-05-10 20:23:26 -07:00
parent c935eb19af
commit fd52c5aa6a
3 changed files with 24 additions and 12 deletions
+7 -2
View File
@@ -14,7 +14,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 2005-2010
Copyright (C) Jay Sorg 2005-2012
libxup main file
@@ -248,7 +248,7 @@ lib_mod_connect(struct mod* mod)
out_uint32_le(s, mod->width);
out_uint32_le(s, mod->height);
out_uint32_le(s, mod->bpp);
out_uint32_le(s, 0);
out_uint32_le(s, mod->rfx); /* send rfx flag */
s_mark_end(s);
len = (int)(s->end - s->data);
s_pop_layer(s, iso_hdr);
@@ -557,6 +557,11 @@ lib_mod_set_param(struct mod* mod, char* name, char* value)
{
g_strncpy(mod->port, value, 255);
}
else if (g_strcasecmp(name, "rfx") == 0)
{
mod->rfx = g_atoi(value);
g_writeln("mod->rfx = %d", mod->rfx);
}
return 0;
}
+2 -1
View File
@@ -14,7 +14,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 2005-2010
Copyright (C) Jay Sorg 2005-2012
libxup main header file
@@ -105,4 +105,5 @@ struct mod
char port[256];
tbus sck_obj;
int shift_state;
int rfx;
};