Browse Source

Compiler doesn't like referencing unset variables

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
e67bb2dfbb
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      win/rfb_win32/DeviceContext.cxx

+ 4
- 0
win/rfb_win32/DeviceContext.cxx View File

@@ -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;
}



Loading…
Cancel
Save