summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:47:01 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:47:01 +0100
commite67bb2dfbb9028fb10b4c219871d1159d9eeb418 (patch)
treea356e9a3a58e958639c66b66f95643db12f4d761 /win
parent40e3ceb007f58a78dde0b54e1c1946c741a3e0d5 (diff)
downloadtigervnc-e67bb2dfbb9028fb10b4c219871d1159d9eeb418.tar.gz
tigervnc-e67bb2dfbb9028fb10b4c219871d1159d9eeb418.zip
Compiler doesn't like referencing unset variables
Diffstat (limited to 'win')
-rw-r--r--win/rfb_win32/DeviceContext.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/rfb_win32/DeviceContext.cxx b/win/rfb_win32/DeviceContext.cxx
index ad5e6b1c..da19de83 100644
--- a/win/rfb_win32/DeviceContext.cxx
+++ b/win/rfb_win32/DeviceContext.cxx
@@ -127,6 +127,10 @@ PixelFormat DeviceContext::getPF(HDC dc) {
if (bpp < 8)
bpp = 8;
vlog.info("%d-colour palettised", 1<<depth);
+ // Aren't really used, but set them to keep the compiler happy
+ redMax = redShift = 0;
+ greenMax = greenShift = 0;
+ blueMax = blueShift = 0;
}