summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-07-19 21:19:00 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-07-19 21:19:00 +0200
commit7468f302ec8d3ba404c74405635e6b3227ed4736 (patch)
tree5ddcf21cc06c3b11bdc5b41c1c25f3d5182241af
parent96318d90a880125f7dd3c370576723a013bfe301 (diff)
fix redraw problem on file open
-rw-r--r--src/GsWidget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index 229047b..1d02c4c 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -383,10 +383,10 @@ int GsWidget::get_page() {
}
int GsWidget::zoom(int p) {
- zoom_percent = p;
-
clear();
+ zoom_percent = p;
+
xdpi = 75 * zoom_percent / 100;
ydpi = 75 * zoom_percent / 100;
@@ -409,6 +409,7 @@ GsWidget::get_pages() {
void
GsWidget::resize() {
size(paper_x * xdpi / 72, paper_y * ydpi / 72);
+ Fl::check(); // avoid redraw problems
}
void