mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 19:04:45 +00:00
33f652e0cc
Added new _SCREENEXISTS command to see if a screen has been made yet for the user. Fixed the string < comparison bug.
19 lines
No EOL
375 B
C++
19 lines
No EOL
375 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;
|
|
}
|
|
|
|
int32 func_windowexists () {
|
|
return window_exists;
|
|
} |