Just started working on screen resizing settings and using window_set_fullscreen(true) on my ultrawide 3440x1440 monitor makes the game get drawn at an x offset. It doesn't recognize that it's being drawn at a different x value because window_get_x() returns 0. You can see the variables drawn on screen that show gamemaker thinks its drawing at (0, 0). Anyone know what's happening and how to fix it?
#Window drawn at wrong x location after switch to fullscreen on ultrawide monitor
6 messages · Page 1 of 1 (latest)
I should add that the draw functions that are specifically not working are in the Draw GUI event
perhaps it is indeed drawing fullscreen but it isnt resizing your application surface?
can you try 1)
window_set_rectangle(0, 0, display_get_width(), display_get_height());
and 2)
surface_resize(application_surface, display_get_width(),display_get_height());
Unfortunately neither of these fixed the x-position problem. I think the problem is actually the GUI layer. Trying more now.
yea in that case try display_set_gui_size(display_get_width(),display_get_height());
if you used display_set_gui_maximise you can try disable that
Actually have been getting help in a help thread that led to the solution, which is that I was drawing based on window size and not gui size!