diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2016-02-27 23:23:39 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-05-13 18:21:59 +0100 |
commit | 37049a0cbea08f3535d1c16b1b7dbbc6c3b9c40d (patch) | |
tree | abdd5d319c6c1e1239b530c8bd96f40fdfbc7292 | |
parent | f1ccefb2c58ebb64cc363ecfd0dd080642e8893b (diff) |
Add logging which records if we are in an RDP session
In an RDP session, the screen bpp will be set to the limited depth allowed
for RDP sessions (16 bpp by default)
This seems to sometimes cause problems with an X server started when the
screen bpp was more, either because the bpp conversion introduces horrible
dithering artefacts, or causes DirectDraw failures which we don't handle
well
Perhaps we should force engine 1 when started in a RDP session? Kind of a
bodge and doesn't really solve the problem above.
-rw-r--r-- | hw/xwin/winengine.c | 2 | ||||
-rw-r--r-- | hw/xwin/winwndproc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/winengine.c b/hw/xwin/winengine.c index 2336442c0..961deb0f5 100644 --- a/hw/xwin/winengine.c +++ b/hw/xwin/winengine.c @@ -54,6 +54,8 @@ static HMODULE g_hmodDirectDraw = NULL; void winDetectSupportedEngines(void) { + ErrorF("winDetectSupportedEngines - RemoteSession: %s\n", GetSystemMetrics(SM_REMOTESESSION) ? "yes" : "no"); + /* Initialize the engine support flags */ g_dwEnginesSupported = WIN_SERVER_SHADOW_GDI; diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c index 7cd51695e..a62a46532 100644 --- a/hw/xwin/winwndproc.c +++ b/hw/xwin/winwndproc.c @@ -170,6 +170,8 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) "new height: %d new bpp: %d\n", LOWORD(lParam), HIWORD(lParam), (int)wParam); + ErrorF("winWindowProc - RemoteSession: %s\n", GetSystemMetrics(SM_REMOTESESSION) ? "yes" : "no"); + /* 0 bpp has no defined meaning, ignore this message */ if (wParam == 0) break; |