mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-06 01:10:23 +00:00
change numerics to more descriptive constants
This commit is contained in:
parent
8574c1f921
commit
ecfa18a109
|
@ -27356,7 +27356,7 @@ void sub__icon(int32 handle_icon, int32 handle_window_icon, int32 passed) {
|
||||||
|
|
||||||
int32 func_screenwidth() {
|
int32 func_screenwidth() {
|
||||||
#ifdef QB64_WINDOWS
|
#ifdef QB64_WINDOWS
|
||||||
return GetSystemMetrics(0);
|
return GetSystemMetrics(SM_CXSCREEN);
|
||||||
#else
|
#else
|
||||||
# ifdef QB64_GLUT
|
# ifdef QB64_GLUT
|
||||||
return glutGet(GLUT_SCREEN_WIDTH);
|
return glutGet(GLUT_SCREEN_WIDTH);
|
||||||
|
@ -27368,7 +27368,7 @@ int32 func_screenwidth() {
|
||||||
|
|
||||||
int32 func_screenheight() {
|
int32 func_screenheight() {
|
||||||
#ifdef QB64_WINDOWS
|
#ifdef QB64_WINDOWS
|
||||||
return GetSystemMetrics(1);
|
return GetSystemMetrics(SM_CYSCREEN);
|
||||||
#else
|
#else
|
||||||
# ifdef QB64_GLUT
|
# ifdef QB64_GLUT
|
||||||
return glutGet(GLUT_SCREEN_HEIGHT);
|
return glutGet(GLUT_SCREEN_HEIGHT);
|
||||||
|
|
Loading…
Reference in a new issue