mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-18 15:15:18 +00:00
Uses GetSystemMetrics to return _DESKTOPWIDTH/HEIGHT in $CONSOLE:ONLY mode.
Windows-only. Partially addresses and closes #58
This commit is contained in:
parent
97151731b1
commit
1437dd98c8
|
@ -20547,9 +20547,13 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
||||||
while (!window_handle){Sleep(100);}
|
while (!window_handle){Sleep(100);}
|
||||||
#endif
|
#endif
|
||||||
return glutGet(GLUT_SCREEN_WIDTH);
|
return glutGet(GLUT_SCREEN_WIDTH);
|
||||||
|
#else
|
||||||
|
#ifdef QB64_WINDOWS
|
||||||
|
return GetSystemMetrics(0);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 func_screenheight () {
|
int32 func_screenheight () {
|
||||||
|
@ -20559,9 +20563,13 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
||||||
while (!window_handle){Sleep(100);}
|
while (!window_handle){Sleep(100);}
|
||||||
#endif
|
#endif
|
||||||
return glutGet(GLUT_SCREEN_HEIGHT);
|
return glutGet(GLUT_SCREEN_HEIGHT);
|
||||||
|
#else
|
||||||
|
#ifdef QB64_WINDOWS
|
||||||
|
return GetSystemMetrics(1);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void sub_screenicon () {
|
void sub_screenicon () {
|
||||||
|
|
Loading…
Reference in a new issue