cursor rectangle was 1px too big
authorChristian Pulvermacher <christian@christian-laptop.(none)>
Wed, 29 Sep 2010 15:46:47 +0000 (17:46 +0200)
committerChristian Pulvermacher <christian@christian-laptop.(none)>
Wed, 29 Sep 2010 15:46:47 +0000 (17:46 +0200)
src/vncview.cpp

index 98787b3..9b7c91a 100644 (file)
@@ -463,7 +463,8 @@ void VncView::paintEvent(QPaintEvent *event)
 #if QT_VERSION >= 0x040500
                painter.setCompositionMode(QPainter::RasterOp_SourceXorDestination);
 #endif
-               painter.drawRect(cursor_x*m_horizontalFactor - 2, cursor_y*m_verticalFactor - 2, 5, 5);
+               //rectangle size is 5px = 4px + 1px pen width
+               painter.drawRect(cursor_x*m_horizontalFactor - 2, cursor_y*m_verticalFactor - 2, 4, 4);
        }
 
     RemoteView::paintEvent(event);