From 7468f302ec8d3ba404c74405635e6b3227ed4736 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 19 Jul 2007 21:19:00 +0200 Subject: fix redraw problem on file open --- src/GsWidget.cxx | 5 +++-- 1 file 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 -- cgit v1.2.3