Files
AM2R-Community-Updates/scripts/set_window_scale.gml
2020-12-22 20:54:55 -06:00

6 lines
246 B
Plaintext

/// set_window_scale(scale)
var scale = max(1, argument0);
window_set_size(round((320 + (106 * global.widescreen_enabled)) * scale), round(240 * scale));
// yes this hurts but it's widescreen proper, so sue me
if (os_is_browser) window_center();