Hello,
In my game the room size is 1024x768 and the background sprites are usually 256x192 images that are scaled up 4 times to fill the room. I have a code to scale the window properly when playing in window mode, and it does indeed work well.
However to go to fullscreen mode I'm using the command window_set_fullscreen(true). My native windows display resolution is 1920x1080. What happens then is that the sprite, the background one for example, is not scaled properly; some pixels are bigger than others, for some reason, instead of being the same size (pic 1 shows the game in fullscreen, pic 2 zooms on a bunch of pixels to show they are not the same size, some are wider, or longer).
I've tried using the surface_resize function as I've read on a guide, but I'm still getting pixels in different sizes in fullscreen mode.
What I'd like to do is be able to switch to fullscreen mode, with the pixels all being in the same size, and keeping the native aspect ratio of 1.33 (1024/768), so for example when playing fullscreen the playable screen should be scaled up to 1280x960 if the windows display resolution is 1920x1080, and not to 1440x1080 as it seems to be doing right now when using window_set_fullscreen(true).
Thanks!
In my game the room size is 1024x768 and the background sprites are usually 256x192 images that are scaled up 4 times to fill the room. I have a code to scale the window properly when playing in window mode, and it does indeed work well.
However to go to fullscreen mode I'm using the command window_set_fullscreen(true). My native windows display resolution is 1920x1080. What happens then is that the sprite, the background one for example, is not scaled properly; some pixels are bigger than others, for some reason, instead of being the same size (pic 1 shows the game in fullscreen, pic 2 zooms on a bunch of pixels to show they are not the same size, some are wider, or longer).
I've tried using the surface_resize function as I've read on a guide, but I'm still getting pixels in different sizes in fullscreen mode.
What I'd like to do is be able to switch to fullscreen mode, with the pixels all being in the same size, and keeping the native aspect ratio of 1.33 (1024/768), so for example when playing fullscreen the playable screen should be scaled up to 1280x960 if the windows display resolution is 1920x1080, and not to 1440x1080 as it seems to be doing right now when using window_set_fullscreen(true).
Thanks!
Attachments
-
154.6 KB Views: 14
-
8.5 KB Views: 14