1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 06:45:16 +00:00

Uses GetSystemMetrics to return _DESKTOPWIDTH/HEIGHT in $CONSOLE:ONLY mode.

Windows-only.

Partially addresses and closes #58
This commit is contained in:
FellippeHeitor 2018-08-01 22:38:21 -03:00
parent 97151731b1
commit 1437dd98c8

View file

@ -20547,9 +20547,13 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
while (!window_handle){Sleep(100);}
#endif
return glutGet(GLUT_SCREEN_WIDTH);
#else
#ifdef QB64_WINDOWS
return GetSystemMetrics(0);
#else
return 0;
#endif
#endif
}
int32 func_screenheight () {
@ -20559,9 +20563,13 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
while (!window_handle){Sleep(100);}
#endif
return glutGet(GLUT_SCREEN_HEIGHT);
#else
#ifdef QB64_WINDOWS
return GetSystemMetrics(1);
#else
return 0;
#endif
#endif
}
void sub_screenicon () {