summaryrefslogtreecommitdiffstats
path: root/vncviewer/Win32PixelBuffer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-30 17:57:27 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:50:29 +0200
commit2e5a10608394186fd1324c97b17d7f08e0c0aaf6 (patch)
treebdd76744f7d2d68bceb9b662c7ab85478510cdd7 /vncviewer/Win32PixelBuffer.cxx
parentff9eb5a949f7af0198db8c563a7d9d735ad083c3 (diff)
downloadtigervnc-2e5a10608394186fd1324c97b17d7f08e0c0aaf6.tar.gz
tigervnc-2e5a10608394186fd1324c97b17d7f08e0c0aaf6.zip
Get rid of getStride()
It was confusing and not properly used everywhere. Callers should use the stride they get when they get the buffer pointer.
Diffstat (limited to 'vncviewer/Win32PixelBuffer.cxx')
-rw-r--r--vncviewer/Win32PixelBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/Win32PixelBuffer.cxx b/vncviewer/Win32PixelBuffer.cxx
index 429f63f1..9fb04145 100644
--- a/vncviewer/Win32PixelBuffer.cxx
+++ b/vncviewer/Win32PixelBuffer.cxx
@@ -40,7 +40,7 @@ static rfb::LogWriter vlog("Win32PixelBuffer");
Win32PixelBuffer::Win32PixelBuffer(int width, int height) :
PlatformPixelBuffer(rfb::PixelFormat(32, 24, false, true,
255, 255, 255, 16, 8, 0),
- width, height, NULL),
+ width, height, NULL, width),
bitmap(NULL)
{
BITMAPINFOHEADER bih;