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

fix one more initial resize bug

parent b6a9ae83
No related branches found
No related tags found
No related merge requests found
...@@ -497,6 +497,8 @@ graphicWindow::graphicWindow(bool main, int numTiles) ...@@ -497,6 +497,8 @@ 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;
printf("mheight=%d glheight=%d height=%d\n", mheight, glheight, height);
// make sure height < screen height // make sure height < screen height
if(height > Fl::h()){ if(height > Fl::h()){
height = Fl::h(); height = Fl::h();
...@@ -507,7 +509,7 @@ graphicWindow::graphicWindow(bool main, int numTiles) ...@@ -507,7 +509,7 @@ graphicWindow::graphicWindow(bool main, int numTiles)
} }
// 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){
mheight = 10; mheight = 10;
glheight = CTX::instance()->glSize[1] - 10; glheight = CTX::instance()->glSize[1] - 10;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment