mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-20 12:45:13 +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,8 +20547,12 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20559,8 +20563,12 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue