summaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/vncExtInit.cc
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/vncExtInit.cc
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/vncExtInit.cc')
-rw-r--r--unix/xserver/hw/vnc/vncExtInit.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc
index b4040d44..54e92f9a 100644
--- a/unix/xserver/hw/vnc/vncExtInit.cc
+++ b/unix/xserver/hw/vnc/vncExtInit.cc
@@ -80,6 +80,7 @@ static unsigned long vncExtGeneration = 0;
static bool initialised = false;
static XserverDesktop* desktop[MAXSCREENS] = { 0, };
void* vncFbptr[MAXSCREENS] = { 0, };
+int vncFbstride[MAXSCREENS];
static char* clientCutText = 0;
static int clientCutTextLen = 0;
@@ -188,7 +189,8 @@ void vncExtensionInit()
desktop[scr] = new XserverDesktop(screenInfo.screens[scr], listener,
httpListener,
desktopNameStr.buf,
- vncFbptr[scr]);
+ vncFbptr[scr],
+ vncFbstride[scr]);
vlog.info("created VNC server for screen %d", scr);
if (scr == 0 && vncInetdSock != -1 && !listener) {