diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp index 987cb00295a2b3d094b051a51fcfef637fb9bb20..a611d9a8d1b55deff3f1a3f9ef2c53ef3c136476 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; }