|
|
23e11d |
From 86cec815e444842411f82c12b2c039ec455f2179 Mon Sep 17 00:00:00 2001
|
|
|
23e11d |
From: Jan Grulich <jgrulich@redhat.com>
|
|
|
23e11d |
Date: Wed, 8 Aug 2018 15:29:23 +0200
|
|
|
23e11d |
Subject: Check endianness when constructing PlatformPixelBuffer()
|
|
|
23e11d |
|
|
|
23e11d |
|
|
|
23e11d |
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
|
|
|
23e11d |
index a2b506df..b5c94d57 100644
|
|
|
23e11d |
--- a/vncviewer/PlatformPixelBuffer.cxx
|
|
|
23e11d |
+++ b/vncviewer/PlatformPixelBuffer.cxx
|
|
|
23e11d |
@@ -34,8 +34,8 @@
|
|
|
23e11d |
static rfb::LogWriter vlog("PlatformPixelBuffer");
|
|
|
23e11d |
|
|
|
23e11d |
PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) :
|
|
|
23e11d |
- FullFramePixelBuffer(rfb::PixelFormat(32, 24, false, true,
|
|
|
23e11d |
- 255, 255, 255, 16, 8, 0),
|
|
|
23e11d |
+ FullFramePixelBuffer(rfb::PixelFormat(32, 24, ImageByteOrder(fl_display) == MSBFirst,
|
|
|
23e11d |
+ true, 255, 255, 255, 16, 8, 0),
|
|
|
23e11d |
width, height, 0, stride),
|
|
|
23e11d |
Surface(width, height)
|
|
|
23e11d |
#if !defined(WIN32) && !defined(__APPLE__)
|