Skip to content
Snippets Groups Projects
Commit 62a2e350 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

try not to create window > screen

parent 2928b34a
No related branches found
No related tags found
No related merge requests found
...@@ -479,8 +479,13 @@ graphicWindow::graphicWindow(bool main, int numTiles) ...@@ -479,8 +479,13 @@ graphicWindow::graphicWindow(bool main, int numTiles)
int glheight = CTX::instance()->glSize[1]; int glheight = CTX::instance()->glSize[1];
int height = glheight + mheight + sh; int height = glheight + mheight + sh;
// FIXME: make sure height < screen_height // make sure height < screen height
if(height > Fl::h()){
mheight = 100;
glheight = Fl::h() - mheight - sh;
CTX::instance()->msgSize = mheight;
CTX::instance()->glSize[1] = glheight;
}
// no tile should be zero during tile creation // no tile should be zero during tile creation
if(CTX::instance()->msgSize <= 0 || CTX::instance()->msgSize >= glheight){ if(CTX::instance()->msgSize <= 0 || CTX::instance()->msgSize >= glheight){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment