From a1a58184b3d3442c37f7048b99de72ead35d4d84 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 14 Nov 2012 21:43:55 +0000 Subject: [PATCH] better "zoom" --- Fltk/FlGui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index 71d41f5260..d7c2535705 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -772,7 +772,7 @@ void window_cb(Fl_Widget *w, void *data) #ifndef FS FlGui::instance()->graph[0]->getWindow()->resize(Fl::x(), Fl::y(), Fl::w(), Fl::h()); FlGui::instance()->graph[0]->hideMessages(); - FlGui::check(); + FlGui::instance()->graph[0]->getWindow()->redraw(); #else FlGui::instance()->graph[0]->getWindow()->fullscreen(); #endif @@ -781,6 +781,7 @@ void window_cb(Fl_Widget *w, void *data) else{ #ifndef FS FlGui::instance()->graph[0]->getWindow()->resize(oldx, oldy, oldw, oldh); + FlGui::instance()->graph[0]->getWindow()->redraw(); #else FlGui::instance()->graph[0]->getWindow()->fullscreen_off(); #endif -- GitLab