summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2012-08-27 13:02:47 +0000
committerPierre Ossman <ossman@cendio.se>2012-08-27 13:02:47 +0000
commit17e28044f1f8e8e1deb5e54f3622f69ac7b9c87e (patch)
tree20329d72aaaf895472509a4871c2b693cd57d665
parent13ee3219270604774486f3f28f4c46ea090d143b (diff)
downloadtigervnc-17e28044f1f8e8e1deb5e54f3622f69ac7b9c87e.tar.gz
tigervnc-17e28044f1f8e8e1deb5e54f3622f69ac7b9c87e.zip
Fix silly typo that caused us to mishandle some SetDesktopSize requests.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4976 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 7e068b17..e777bd30 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -886,7 +886,7 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
}
/* First we might need to resize the screen */
- if ((fb_width != pScreen->width) || (fb_height == pScreen->height)) {
+ if ((fb_width != pScreen->width) || (fb_height != pScreen->height)) {
/* Try to retain DPI when we resize */
ret = RRScreenSizeSet(pScreen, fb_width, fb_height,
pScreen->mmWidth * fb_width / pScreen->width,