From a7500cc6f822c825b7d1b2801f00176a9087fde5 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 12 Oct 2011 16:18:29 +0000
Subject: [PATCH] fix msg height if window bigger than screen size

---
 Fltk/graphicWindow.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp
index 987cb00295..a611d9a8d1 100644
--- a/Fltk/graphicWindow.cpp
+++ b/Fltk/graphicWindow.cpp
@@ -481,8 +481,9 @@ graphicWindow::graphicWindow(bool main, int numTiles)
 
   // make sure height < screen height
   if(height > Fl::h()){
+    height = Fl::h();
     mheight = 100;
-    glheight = Fl::h() - mheight - sh;
+    glheight = height - mheight - sh;
     CTX::instance()->msgSize = mheight;
     CTX::instance()->glSize[1] = glheight;
   }
-- 
GitLab