The names WINDOW_HEIGHT
and WINDOW_WIDTH
are likely used as macros or other names in the Windows environment. Using variables that are all upper-case names is generally a bad idea, as this is the convention for macros, so the chances of accidentally conflicting with some macro defined in some header-file that you didn't even know was being included is much greater.
I would suggest that you change the names of your variables so that they don't conflict - the simple way to do that is to use lower-case names, window_height
and window_width
, etc.