summaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver/Geometry.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-17 16:36:25 +0200
committerPierre Ossman <ossman@cendio.se>2014-09-17 16:36:25 +0200
commit0f15ee3b5488b7384b1aa80dfceff6f2115e3517 (patch)
tree7de1d94bc2830b10df2c001376532a27a1c8798c /unix/x0vncserver/Geometry.cxx
parent23f67c3e282420e63adf28b1f5d51ee1e206f6f4 (diff)
downloadtigervnc-0f15ee3b5488b7384b1aa80dfceff6f2115e3517.tar.gz
tigervnc-0f15ee3b5488b7384b1aa80dfceff6f2115e3517.zip
Remove unused VideoArea parameter
Diffstat (limited to 'unix/x0vncserver/Geometry.cxx')
-rw-r--r--unix/x0vncserver/Geometry.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/unix/x0vncserver/Geometry.cxx b/unix/x0vncserver/Geometry.cxx
index 94e2df68..adc72c34 100644
--- a/unix/x0vncserver/Geometry.cxx
+++ b/unix/x0vncserver/Geometry.cxx
@@ -32,11 +32,6 @@ StringParameter Geometry::m_geometryParam("Geometry",
"If the argument is empty, full screen is shown to VNC clients.",
"");
-StringParameter Geometry::m_videoAreaParam("VideoArea",
- "Screen area to be handled as video. "
- "Format is <width>x<height>+<offset_x>+<offset_y>.",
- "");
-
Geometry::Geometry(int fullWidth, int fullHeight)
: m_fullWidth(fullWidth),
m_fullHeight(fullHeight),
@@ -58,25 +53,6 @@ Geometry::Geometry(int fullWidth, int fullHeight)
// Everything went good so far.
vlog.info("Desktop geometry is set to %dx%d+%d+%d",
width(), height(), offsetLeft(), offsetTop());
-
- // Handle the VideoArea parameter, save the result in m_videoRect.
- // Note that we log absolute coordinates but save relative ones.
- param = m_videoAreaParam.getData();
- bool videoAreaSpecified = (strlen(param) > 0);
- if (videoAreaSpecified) {
- Rect absVideoRect = parseString(param);
- if (!absVideoRect.is_empty()) {
- vlog.info("Video area set to %dx%d+%d+%d",
- absVideoRect.width(), absVideoRect.height(),
- absVideoRect.tl.x, absVideoRect.tl.y);
- Point base(-offsetLeft(), -offsetTop());
- m_videoRect = absVideoRect.translate(base);
- } else {
- vlog.info("Video area was not set");
- m_videoRect.clear();
- }
- }
- delete[] param;
}
Rect Geometry::parseString(const char *arg) const