I made this script for resizing the game window:
However, the font goes from drawing like this:
To this:
Everything else draws like normal. What's causing this and how can I fix it?
EDIT:
Looking at it again, it seems to affect everything in the GUI layer somehow.
Code:
/// @description window_resize()
var w = window_get_width();
var h = window_get_height();
if w != surface_get_width(application_surface) or h != surface_get_height(application_surface)
{
surface_resize(application_surface, w, h);
display_set_gui_size(w, h);
view_set_wport(0, w);
view_set_hport(0, h);
}
To this:
Everything else draws like normal. What's causing this and how can I fix it?
EDIT:
Looking at it again, it seems to affect everything in the GUI layer somehow.
Last edited: