diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-08-31 10:13:01 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2011-01-19 14:02:34 +0000 |
commit | 3f7339a7c5d3dcd05909b041865125f4cb6fa29e (patch) | |
tree | d01767418088326b99772fad53f1585d356b8c2a /hw/xwin/win.h | |
parent | 8b22f83113fbdc09b932b5ad7e44f629fc15e3b5 (diff) |
Cygwin/X: Deal with RANDR depth changes correctly in ShadowGDI drawing engine
Make ShadowGDI drawing engine only change the size of the screen
pixmap/shadow framebuffer on an RANDR change, not the bpp/depth
as well.
The server requires the screen pixmap's depth to be invariant.
Other drawing engines aren't quite as affected by this issue as
they won't draw to the display, if it has changed colour depth,
but probably still need some attention.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Tested-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw/xwin/win.h')
-rw-r--r-- | hw/xwin/win.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xwin/win.h b/hw/xwin/win.h index 96a868e22..3f40fdbe0 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -504,7 +504,8 @@ typedef struct _winPrivScreenRec HDC hdcScreen; HDC hdcShadow; HWND hwndScreen; - + BITMAPINFOHEADER *pbmih; + /* Privates used by shadow fb and primary fb DirectDraw servers */ LPDIRECTDRAW pdd; LPDIRECTDRAWSURFACE2 pddsPrimary; |