• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GUI scaling

N

nougat

Guest
So my game is running at 1280x720 resolution.
I set display_set_gui_size(1280, 720) but i get pixel problems where some pixels are missing or is added when i go to fullscreen or change resolution.
I assume its because its not perfect increase/decrease (x2,x0.5) and there is no such thing as a half pixel.
If im right, how do i overcome this problem?
Normal 1280x720 port on screen.
Fullscreen 1920x1080.
 

RangerX

Member
Well, you sorta answered your problem. You don't overcome this, you scale up only by integer values :)
Or you simply draw your GUI at the new size without resizing its elements.
 
Top