summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-08-21 03:35:08 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-08-21 03:35:08 +0000
commitc341ac6973de3ccdc500cc63d7593b9c1631c6c5 (patch)
tree9d965f6b9bc1f80654b62d11ba9b3d8eb376888f
parent6d085f11e79f3872a7eed9c3c6829c07a84d8cd2 (diff)
downloadtigervnc-c341ac6973de3ccdc500cc63d7593b9c1631c6c5.tar.gz
tigervnc-c341ac6973de3ccdc500cc63d7593b9c1631c6c5.zip
Passing VideoArea parameter to VNCServerST object. VNCServerST saves the
rectangle but does not use it yet. does not do anything more. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2692 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/rfb/VNCServerST.cxx4
-rw-r--r--common/rfb/VNCServerST.h3
-rw-r--r--unix/x0vncserver/x0vncserver.cxx5
3 files changed, 10 insertions, 2 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index 066feb90..e9544780 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -574,3 +574,7 @@ void VNCServerST::unsetVideoRectangle()
}
}
+void VNCServerST::setDefaultVideoRect(const Rect& r)
+{
+ m_defaultVideoRect = r;
+}
diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h
index 5277f550..1dd7afd1 100644
--- a/common/rfb/VNCServerST.h
+++ b/common/rfb/VNCServerST.h
@@ -205,6 +205,8 @@ namespace rfb {
void setVideoRectangle(const Rect& r);
void unsetVideoRectangle();
+ void setDefaultVideoRect(const Rect& r);
+
protected:
friend class VNCSConnectionST;
@@ -256,6 +258,7 @@ namespace rfb {
bool m_videoSelectionEnabled;
Rect m_videoRect;
+ Rect m_defaultVideoRect;
};
};
diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx
index a6bae95b..d21e71b1 100644
--- a/unix/x0vncserver/x0vncserver.cxx
+++ b/unix/x0vncserver/x0vncserver.cxx
@@ -186,8 +186,9 @@ public:
pb = new XPixelBuffer(dpy, factory, geometry->getRect(), this);
vlog.info("Allocated %s", pb->getImage()->classDesc());
- server = vs;
+ server = (VNCServerST *)vs;
server->setPixelBuffer(pb);
+ server->setDefaultVideoRect(geometry->getVideoRect());
running = true;
}
@@ -259,7 +260,7 @@ protected:
Display* dpy;
Geometry* geometry;
XPixelBuffer* pb;
- VNCServer* server;
+ VNCServerST* server;
int oldButtonMask;
bool haveXtest;
int maxButtons;