diff options
author | Adam Tkac <atkac@redhat.com> | 2011-02-21 12:40:30 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2011-02-21 12:40:30 +0000 |
commit | 9c8076bf9b32b8dff38a85d87f43a10c6903babd (patch) | |
tree | 6db6f0346a5415201d3841d6ea073a3fc7c83778 | |
parent | bc9bb15feb9c96bc10ed8f4ac6ddf1fe24f72d24 (diff) | |
download | tigervnc-9c8076bf9b32b8dff38a85d87f43a10c6903babd.tar.gz tigervnc-9c8076bf9b32b8dff38a85d87f43a10c6903babd.zip |
[Bugfix] rfb_win32: DeviceContext::getPF didn't return correct pixel format.
Fixes ID: 3183993 bug.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4299 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | win/rfb_win32/DeviceContext.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/rfb_win32/DeviceContext.cxx b/win/rfb_win32/DeviceContext.cxx index 4f70a1bf..3b97e446 100644 --- a/win/rfb_win32/DeviceContext.cxx +++ b/win/rfb_win32/DeviceContext.cxx @@ -124,7 +124,12 @@ PixelFormat DeviceContext::getPF(HDC dc) { vlog.info("%d-colour palettised", 1<<format.depth); } - return format; + + // Use 10 arguments constructor to trigger PixelFormat::updateState() + return PixelFormat(format.bpp, format.depth, + format.bigEndian, format.trueColour, + format.redMax, format.greenMax, format.blueMax, + format.redShift, format.greenShift, format.blueShift); } Rect DeviceContext::getClipBox() const { |