aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Win32PixelBuffer.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-02-07 14:46:26 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:50:28 +0200
commitac13abe4ce9f74522acd9697a08dc56de8e2949f (patch)
tree4eb0fdaa6cf22d0e06f63b9cb1a03063f5f21c27 /vncviewer/Win32PixelBuffer.h
parent668468b3d43d5ea1562ebc0be8de0c98c5601a60 (diff)
downloadtigervnc-ac13abe4ce9f74522acd9697a08dc56de8e2949f.tar.gz
tigervnc-ac13abe4ce9f74522acd9697a08dc56de8e2949f.zip
Create a proper interface base class for the viewport's framebuffer
This allows us to gracefully fall back to the FLTK code in case the platform specific code cannot be used.
Diffstat (limited to 'vncviewer/Win32PixelBuffer.h')
-rw-r--r--vncviewer/Win32PixelBuffer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vncviewer/Win32PixelBuffer.h b/vncviewer/Win32PixelBuffer.h
index 7d91e09d..728e5948 100644
--- a/vncviewer/Win32PixelBuffer.h
+++ b/vncviewer/Win32PixelBuffer.h
@@ -1,4 +1,4 @@
-/* Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
+/* Copyright 2011-2014 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,14 +21,14 @@
#include <windows.h>
-#include <rfb/PixelBuffer.h>
+#include "PlatformPixelBuffer.h"
-class PlatformPixelBuffer: public rfb::FullFramePixelBuffer {
+class Win32PixelBuffer: public PlatformPixelBuffer {
public:
- PlatformPixelBuffer(int width, int height);
- ~PlatformPixelBuffer();
+ Win32PixelBuffer(int width, int height);
+ ~Win32PixelBuffer();
- void draw(int src_x, int src_y, int x, int y, int w, int h);
+ virtual void draw(int src_x, int src_y, int x, int y, int w, int h);
protected:
HBITMAP bitmap;