projects
/
presencevnc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24413e1
)
take scrollbar width into consideration when zooming
author
Christian Pulvermacher
<christian@hazel.(none)>
Wed, 20 Oct 2010 16:12:26 +0000
(18:12 +0200)
committer
Christian Pulvermacher
<christian@hazel.(none)>
Wed, 20 Oct 2010 16:17:33 +0000
(18:17 +0200)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
77be3b4
..
e0b4866
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-378,7
+378,8
@@
void MainWindow::setZoomLevel(int level)
if(new_width != old_width) {
center = center * (double(new_width)/old_width);
scroll_area->ensureVisible(center.x(), center.y(),
- scroll_area->width()/2, scroll_area->height()/2);
+ vnc_view->visibleRegion().boundingRect().width()/2,
+ vnc_view->visibleRegion().boundingRect().height()/2);
vnc_view->update();
}
}