diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-10-25 10:36:21 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-10-25 10:36:21 +0200 |
commit | cc647dbd40398e5d56a5b5d649f3bb20d90608e6 (patch) | |
tree | a25278df5868a829011de27641d6f8e74398c0d5 /vncviewer/PlatformPixelBuffer.cxx | |
parent | 4af93a9509638c92eb99e0fc276290c6cf82940c (diff) | |
download | tigervnc-cc647dbd40398e5d56a5b5d649f3bb20d90608e6.tar.gz tigervnc-cc647dbd40398e5d56a5b5d649f3bb20d90608e6.zip |
Fix rendering on big endian system
Our XRender code assumes a certain pixel layout which was not
guaranteed on big endian systems. The previous workaround only worked
for some cases, so fix this properly now.
Diffstat (limited to 'vncviewer/PlatformPixelBuffer.cxx')
-rw-r--r-- | vncviewer/PlatformPixelBuffer.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx index c79b5c1a..e6a054ab 100644 --- a/vncviewer/PlatformPixelBuffer.cxx +++ b/vncviewer/PlatformPixelBuffer.cxx @@ -34,13 +34,8 @@ static rfb::LogWriter vlog("PlatformPixelBuffer"); PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) : - FullFramePixelBuffer(rfb::PixelFormat(32, 24, -#if !defined(WIN32) && !defined(__APPLE__) - ImageByteOrder(fl_display) == MSBFirst, -#else - false, -#endif - true, 255, 255, 255, 16, 8, 0), + FullFramePixelBuffer(rfb::PixelFormat(32, 24, false, true, + 255, 255, 255, 16, 8, 0), width, height, 0, stride), Surface(width, height) #if !defined(WIN32) && !defined(__APPLE__) |