diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-30 17:57:27 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:50:29 +0200 |
commit | 2e5a10608394186fd1324c97b17d7f08e0c0aaf6 (patch) | |
tree | bdd76744f7d2d68bceb9b662c7ab85478510cdd7 /vncviewer/PlatformPixelBuffer.h | |
parent | ff9eb5a949f7af0198db8c563a7d9d735ad083c3 (diff) | |
download | tigervnc-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/PlatformPixelBuffer.h')
-rw-r--r-- | vncviewer/PlatformPixelBuffer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vncviewer/PlatformPixelBuffer.h b/vncviewer/PlatformPixelBuffer.h index 28d085aa..03842ac8 100644 --- a/vncviewer/PlatformPixelBuffer.h +++ b/vncviewer/PlatformPixelBuffer.h @@ -24,12 +24,10 @@ class PlatformPixelBuffer: public rfb::FullFramePixelBuffer { public: PlatformPixelBuffer(const rfb::PixelFormat& pf, int width, int height, - rdr::U8* data); + rdr::U8* data, int stride); virtual void draw(int src_x, int src_y, int x, int y, int w, int h) = 0; -protected: - int stride; }; #endif |