Y
YCCCM7
Guest
Using gamemaker studio 1.4.1763 here.
Anyways, when one goes to windows > display settings for a game, there are "keep aspect ratio" and "full scale" as options for how certain things should scale. The issue is, when in fullscreen mode, trying to keep aspect ratio (which is key for looking good on a variety of display sizes, in my opinion) seems to invoke large volumes errors in the aftermath.
These include, that I can confirm:
-device_mouse_raw_x() returning a value that is incorrect by almost exactly 1/6th of the length of one of the black bars on the sides of the screen.
-display_get_gui_width() returning a value that is overshot by exactly the sum of the width (in pixels) of the black bars on the sides of the screen.
-calls for place_meeting() that check for the position of the mouse (and other GUI elements) being wrong by exactly 82% of the width of one black bar on the side of the screen.
So my question is, mostly, whether or not there's anything one needs to adjust or a method to calibrate for these odd errors, assuming they are known errors. I've attempted to set GUI size, but that causes even more errors than it would (theoretically) solve.
For reference, I can confirm that these issues are for certain not occurring in windowed mode, as I've tested extensively. I can get screenshots if this may help, but long story short, black bars seems to be invoking massive errors and it's requiring me to either go with wrong aspect ratio (which looks awful) or rewrite some of the most fundamental code in my game.
Thanks for your time, either way.
Anyways, when one goes to windows > display settings for a game, there are "keep aspect ratio" and "full scale" as options for how certain things should scale. The issue is, when in fullscreen mode, trying to keep aspect ratio (which is key for looking good on a variety of display sizes, in my opinion) seems to invoke large volumes errors in the aftermath.
These include, that I can confirm:
-device_mouse_raw_x() returning a value that is incorrect by almost exactly 1/6th of the length of one of the black bars on the sides of the screen.
-display_get_gui_width() returning a value that is overshot by exactly the sum of the width (in pixels) of the black bars on the sides of the screen.
-calls for place_meeting() that check for the position of the mouse (and other GUI elements) being wrong by exactly 82% of the width of one black bar on the side of the screen.
So my question is, mostly, whether or not there's anything one needs to adjust or a method to calibrate for these odd errors, assuming they are known errors. I've attempted to set GUI size, but that causes even more errors than it would (theoretically) solve.
For reference, I can confirm that these issues are for certain not occurring in windowed mode, as I've tested extensively. I can get screenshots if this may help, but long story short, black bars seems to be invoking massive errors and it's requiring me to either go with wrong aspect ratio (which looks awful) or rewrite some of the most fundamental code in my game.
Thanks for your time, either way.