mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 15:34:03 +00:00
c460dbb808
Glut commands _SCREENX, _SCREENY, _SCREENMOVE, _DESKTOPHEIGHT, _DESKTOPWIDTH, _SCREENICON now wait for the screen to be created before trying to work. Change to QB64.bas source to use _BLINEINPUT instead of LINE INPUT for INCLUDE$. This should make the IDE much more responsive when Includes are used from now on.
15 lines
No EOL
316 B
C++
15 lines
No EOL
316 B
C++
int32 func_screenwidth () {
|
|
while (!window_exists){Sleep(100);}
|
|
return glutGet(GLUT_SCREEN_WIDTH);
|
|
}
|
|
|
|
int32 func_screenheight () {
|
|
while (!window_exists){Sleep(100);}
|
|
return glutGet(GLUT_SCREEN_HEIGHT);
|
|
}
|
|
|
|
void sub_screenicon () {
|
|
while (!window_exists){Sleep(100);}
|
|
glutIconifyWindow;
|
|
return;
|
|
} |