summaryrefslogtreecommitdiffstats
path: root/vncviewer/PlatformPixelBuffer.cxx
diff options
context:
space:
mode:
authorJan Grulich <jgrulich@redhat.com>2018-08-08 15:29:23 +0200
committerJan Grulich <jgrulich@redhat.com>2018-08-08 15:29:23 +0200
commit86cec815e444842411f82c12b2c039ec455f2179 (patch)
treea98d6c8998b3c5a7a3f074df4c96e7958dce3f25 /vncviewer/PlatformPixelBuffer.cxx
parentbe88293952175258992c1ed2f5a1b7d8f78fe7cc (diff)
downloadtigervnc-86cec815e444842411f82c12b2c039ec455f2179.tar.gz
tigervnc-86cec815e444842411f82c12b2c039ec455f2179.zip
Check endianness when constructing PlatformPixelBuffer()
Diffstat (limited to 'vncviewer/PlatformPixelBuffer.cxx')
-rw-r--r--vncviewer/PlatformPixelBuffer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
index a2b506df..b5c94d57 100644
--- a/vncviewer/PlatformPixelBuffer.cxx
+++ b/vncviewer/PlatformPixelBuffer.cxx
@@ -34,8 +34,8 @@
static rfb::LogWriter vlog("PlatformPixelBuffer");
PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) :
- FullFramePixelBuffer(rfb::PixelFormat(32, 24, false, true,
- 255, 255, 255, 16, 8, 0),
+ FullFramePixelBuffer(rfb::PixelFormat(32, 24, ImageByteOrder(fl_display) == MSBFirst,
+ true, 255, 255, 255, 16, 8, 0),
width, height, 0, stride),
Surface(width, height)
#if !defined(WIN32) && !defined(__APPLE__)