summaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/XserverDesktop.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-03-18 17:22:30 +0000
committerPierre Ossman <ossman@cendio.se>2009-03-18 17:22:30 +0000
commitef27ba18353159b4e1a363e09162c04ddf9091a7 (patch)
tree554c9bfd76ba32c5c02748cbc839fe434d72953a /unix/xserver/hw/vnc/XserverDesktop.h
parent8698f02b9f13f579df94ae35545b5e3bdb13b2e9 (diff)
downloadtigervnc-ef27ba18353159b4e1a363e09162c04ddf9091a7.tar.gz
tigervnc-ef27ba18353159b4e1a363e09162c04ddf9091a7.zip
Support for RandR on the server.
Based on patch by George Wright but heavily rewritten in order to dynamically reallocate the framebuffer, allowing any resize. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3688 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/xserver/hw/vnc/XserverDesktop.h')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.h b/unix/xserver/hw/vnc/XserverDesktop.h
index fb758470..50b7d935 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.h
+++ b/unix/xserver/hw/vnc/XserverDesktop.h
@@ -62,11 +62,12 @@ public:
XserverDesktop(ScreenPtr pScreen, network::TcpListener* listener,
network::TcpListener* httpListener_,
- const char* name, void* fbptr);
+ const char* name, void* fbptr, int stride);
virtual ~XserverDesktop();
// methods called from X server code
void serverReset(ScreenPtr pScreen);
+ void setFramebuffer(int w, int h, void* fbptr, int stride);
void setColormap(ColormapPtr cmap);
void setColourMapEntries(ColormapPtr pColormap, int ndef, xColorItem* pdef);
void bell();
@@ -106,6 +107,7 @@ public:
// rfb::PixelBuffer callbacks
virtual void grabRegion(const rfb::Region& r);
+ virtual int getStride() const;
// rfb::ColourMap callbacks
virtual void lookup(int index, int* r, int* g, int* b);
@@ -130,6 +132,7 @@ private:
network::TcpListener* listener;
network::TcpListener* httpListener;
ColormapPtr cmap;
+ int stride_;
bool deferredUpdateTimerSet;
bool grabbing;
bool ignoreHooks_;