From d037db10861eb119c50e7dad4d8666b786d33a2f Mon Sep 17 00:00:00 2001 From: Cendio Date: Thu, 9 Nov 2017 17:15:16 +0100 Subject: [PATCH] Increase default desktop size and enable wallpaper --- rdesktop.c | 11 +++++------ rdp.c | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/rdesktop.c b/rdesktop.c index 0cf0ab6..1a3c3d2 100644 --- a/rdesktop.c +++ b/rdesktop.c @@ -72,10 +72,10 @@ int g_sizeopt = 0; /* If non-zero, a special size has been from _NET_WORKAREA. If negative, absolute value specifies the percent of the whole screen. */ int g_dpi = 0; /* device DPI: default not set */ -int g_width = 800; -int g_height = 600; -uint32 g_windowed_width = 800; -uint32 g_windowed_height = 600; +int g_width = 1024; +int g_height = 768; +uint32 g_windowed_width = 1024; +uint32 g_windowed_height = 768; int g_xpos = 0; int g_ypos = 0; int g_pos = 0; /* 0 position unspecified, @@ -114,8 +114,7 @@ char g_seamless_spawn_cmd[512]; RD_BOOL g_seamless_persistent_mode = True; RD_BOOL g_user_quit = False; uint32 g_embed_wnd; -uint32 g_rdp5_performanceflags = (PERF_DISABLE_WALLPAPER | - PERF_DISABLE_FULLWINDOWDRAG | +uint32 g_rdp5_performanceflags = (PERF_DISABLE_FULLWINDOWDRAG | PERF_DISABLE_MENUANIMATIONS | PERF_ENABLE_FONT_SMOOTHING); /* Session Directory redirection */ diff --git a/rdp.c b/rdp.c index dc6b42f..6100a94 100644 --- a/rdp.c +++ b/rdp.c @@ -665,8 +665,8 @@ rdp_out_ts_bitmap_capabilityset(STREAM s) out_uint16_le(s, 1); /* receive1BitPerPixel (ignored, should be 1) */ out_uint16_le(s, 1); /* receive4BitPerPixel (ignored, should be 1) */ out_uint16_le(s, 1); /* receive8BitPerPixel (ignored, should be 1) */ - out_uint16_le(s, 800); /* desktopWidth */ - out_uint16_le(s, 600); /* desktopHeight */ + out_uint16_le(s, g_width); /* desktopWidth */ + out_uint16_le(s, g_height); /* desktopHeight */ out_uint16_le(s, 0); /* pad2Octets */ out_uint16_le(s, 1); /* desktopResizeFlag */ out_uint16_le(s, 1); /* bitmapCompressionFlag (must be 1) */