diff options
-rw-r--r-- | src/GsWidget.cxx | 5 |
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 |