fix the -b switch

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@677 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Jay Sorg 2004-04-26 22:31:22 +00:00
parent 5cfce0a406
commit da391278ec
2 changed files with 4 additions and 3 deletions

View File

@ -58,7 +58,7 @@ int g_server_bpp = 8;
int g_win_button_size = 0; /* If zero, disable single app mode */
BOOL g_bitmap_compression = True;
BOOL g_sendmotion = True;
BOOL g_orders = True;
BOOL g_bitmap_cache = True;
BOOL g_encryption = True;
BOOL packet_encryption = True;
BOOL g_desktop_save = True;
@ -457,7 +457,7 @@ main(int argc, char *argv[])
break;
case 'b':
g_orders = False;
g_bitmap_cache = False;
break;
case 'B':

3
rdp.c
View File

@ -33,6 +33,7 @@ extern uint32 g_rdp5_performanceflags;
extern int g_server_bpp;
extern int g_width;
extern int g_height;
extern BOOL g_bitmap_cache;
uint8 *g_next_packet;
uint32 g_rdp_shareid;
@ -436,7 +437,7 @@ rdp_out_order_caps(STREAM s)
order_caps[0] = 1; /* dest blt */
order_caps[1] = 1; /* pat blt */
order_caps[2] = 1; /* screen blt */
order_caps[3] = 1; /* required for memblt? */
order_caps[3] = (g_bitmap_cache ? 1 : 0); /* memblt */
order_caps[8] = 1; /* line */
order_caps[9] = 1; /* line */
order_caps[10] = 1; /* rect */