05-13-2022, 10:38 PM
I'd say it's rather a problem with glut and $SCREENHIDE, back in the very ancient times, when QB64 was SDL based, I used to hide the screen generally, then _SCREENMOVE to my desired position and then _SCREENSHOW, so that the window nicely opened in the right place, rather than in any random position and then jumping accross the Desktop to the defined position. This behavior did always nerv me and looked unproffesional. But, the above method worked out good to workaround that.
Suddenly, QB64 became OpenGL based, and none of my programs doing the above trick did work anymore. They all just freezed without a sign of life and I need to use the TaskManager to kill it.
Later when start working on my GuiTools project, I had the same problem and started investigating a bit.
Basically I found especially in GuiTools, that the program stopped working, as soon as the display was updated first (_DISPLAY). The only way to prevent this was the use of $CONSOLE:ONLY, which is no option for a GUI project
Internally I think it's glut, which needs a valid window handle for almost all operations, which is not available with $SCREENHIDE in effect. How SDL did manage to work correctly here, no clue
Suddenly, QB64 became OpenGL based, and none of my programs doing the above trick did work anymore. They all just freezed without a sign of life and I need to use the TaskManager to kill it.
Later when start working on my GuiTools project, I had the same problem and started investigating a bit.
Basically I found especially in GuiTools, that the program stopped working, as soon as the display was updated first (_DISPLAY). The only way to prevent this was the use of $CONSOLE:ONLY, which is no option for a GUI project
Internally I think it's glut, which needs a valid window handle for almost all operations, which is not available with $SCREENHIDE in effect. How SDL did manage to work correctly here, no clue
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23