aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-06-09 08:39:35 +0000
committerPierre Ossman <ossman@cendio.se>2011-06-09 08:39:35 +0000
commita51574a1bff4091a1e2c3b39bf8e4e299eec8665 (patch)
treeedfef3bbb63b1d14aa42bc9672a95dd6fa27246e /vncviewer/Viewport.cxx
parent93f377488b66f649ef084d4ff7a9288836bf3316 (diff)
downloadtigervnc-a51574a1bff4091a1e2c3b39bf8e4e299eec8665.tar.gz
tigervnc-a51574a1bff4091a1e2c3b39bf8e4e299eec8665.zip
Copied the dot cursor logic over from the Unix viewer incorrectly.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4480 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index 14feaf88..f673dd84 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -207,9 +207,8 @@ void Viewport::setCursor(int width, int height, const Point& hotspot,
for (i = 0; i < mask_len; i++)
if (((rdr::U8*)mask)[i]) break;
- if (i == mask_len) {
- if (dotWhenNoCursor)
- vlog.debug("cursor is empty - using dot");
+ if ((i == mask_len) && dotWhenNoCursor) {
+ vlog.debug("cursor is empty - using dot");
Fl_Pixmap pxm(dotcursor_xpm);
cursor = new Fl_RGB_Image(&pxm);