Deltarune (Chapter Select) script viewer

← back to main script listing

gml_Object_obj_init_console_Draw_77

(view raw script w/o annotations or w/e)
1
var ww = window_get_width();
2
var wh = window_get_height();
3
var sw = surface_get_width(application_surface);
4
var sh = surface_get_height(application_surface);
5
var xx = floor((ww - (sw * global.window_scale)) / 2);
6
var yy = floor((wh - (sh * global.window_scale)) / 2);
7
global.window_xofs = xx;
8
global.window_yofs = yy;
9
if (scr_is_switch_os() && wh == 720)
10
    texture_set_interpolation(true);
11
else
12
    texture_set_interpolation(false);
13
draw_enable_alphablend(false);
14
draw_surface_ext(application_surface, xx, yy, global.window_scale, global.window_scale, 0, c_white, 1);
15
draw_enable_alphablend(true);
16
texture_set_interpolation(false);