aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-05-24 04:23:46 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-05-24 04:23:46 +0000
commit4c4f23ec5eac4fd2da78754d43e8b0dd7bd2e6f4 (patch)
tree56495910e3a9b3221771b96cd3aadcbcd926e0c1 /vncviewer
parentbd494149af3286c40976635c77c551068fea7e6c (diff)
downloadtigervnc-4c4f23ec5eac4fd2da78754d43e8b0dd7bd2e6f4.tar.gz
tigervnc-4c4f23ec5eac4fd2da78754d43e8b0dd7bd2e6f4.zip
Small code improvements. Convert the coordinates from
scaled to source only if ScaledDibSectionBuffer in the scaled mode. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@580 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index c7b496bb..27ef2dc2 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -775,8 +775,10 @@ DesktopWindow::processFrameMessage(UINT msg, WPARAM wParam, LPARAM lParam) {
// Send a pointer event to the server
oldpos = p;
- p.x /= double(buffer->getScale()) / 100;
- p.y /= double(buffer->getScale()) / 100;
+ if (buffer->isScaling()) {
+ p.x /= double(buffer->getScale()) / 100.0;
+ p.y /= double(buffer->getScale()) / 100.0;
+ }
ptr.pointerEvent(callback, p, mask);
#ifdef WM_MOUSEWHEEL
}