1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-16 15:34:03 +00:00
QB64-PE/internal/c/User Mods/Steve Stuff/screeninfo.cpp
Luke Ceddia c460dbb808 Fix glut-calling commands, make IDE use _BLINEINPUT for '$includes (for Steve).
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.
2014-07-24 19:24:00 +10:00

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;
}