diff options
author | Pierre Ossman <ossman@cendio.se> | 2009-03-18 17:22:30 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2009-03-18 17:22:30 +0000 |
commit | ef27ba18353159b4e1a363e09162c04ddf9091a7 (patch) | |
tree | 554c9bfd76ba32c5c02748cbc839fe434d72953a /unix/xserver/hw/vnc/XserverDesktop.h | |
parent | 8698f02b9f13f579df94ae35545b5e3bdb13b2e9 (diff) | |
download | tigervnc-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.h | 5 |
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_; |