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 (os_type == os_switch && wh == 720) |
10 |
texture_set_interpolation(true); |
11 |
else |
12 |
texture_set_interpolation(false); |
13 |
if (global.screen_border_active && border_alpha >= 0) |
14 |
{ |
15 |
var border_id = global.screen_border_id; |
16 |
draw_enable_alphablend(false); |
17 |
if (border_id == "Dynamic" || border_id == "ダイナミック") |
18 |
{ |
19 |
scr_draw_background_ps4scr_draw_background_ps4function scr_draw_background_ps4(arg0, arg1, arg2)
{
var bg = arg0;
var xx = arg1;
var yy = arg2;
if (os_type == os_ps4 || os_type == os_switch)
{
var scale = window_get_width() / 1920;
draw_background_stretched(bg, xx * scale, yy * scale, background_get_width(bg) * scale, background_get_height(bg) * scale);
}
else
{
var scale = window_get_width() / 1920;
draw_background_stretched(bg, xx * scale, yy * scale, background_get_width(bg) * scale, background_get_height(bg) * scale);
}
} (_border_image, 0, 0); |
20 |
global.disable_border = obj_time.border_alpha != 1; |
21 |
} |
22 |
else if (border_id == "Simple" || border_id == "シンプル") |
23 |
{ |
24 |
scr_draw_background_ps4scr_draw_background_ps4function scr_draw_background_ps4(arg0, arg1, arg2)
{
var bg = arg0;
var xx = arg1;
var yy = arg2;
if (os_type == os_ps4 || os_type == os_switch)
{
var scale = window_get_width() / 1920;
draw_background_stretched(bg, xx * scale, yy * scale, background_get_width(bg) * scale, background_get_height(bg) * scale);
}
else
{
var scale = window_get_width() / 1920;
draw_background_stretched(bg, xx * scale, yy * scale, background_get_width(bg) * scale, background_get_height(bg) * scale);
}
} (border_line_1080, 0, 0); |
25 |
global.disable_border = obj_time.border_alpha != 1; |
26 |
} |
27 |
draw_set_alpha(1); |
28 |
draw_enable_alphablend(true); |
29 |
if (border_alpha < 1) |
30 |
{ |
31 |
draw_set_alpha(1 - border_alpha); |
32 |
draw_set_color(c_black); |
33 |
ossafe_fill_rectangle(0, 0, ww - 1, wh - 1); |
34 |
draw_set_alpha(1); |
35 |
draw_set_color(c_white); |
36 |
} |
37 |
} |
38 |
else |
39 |
{ |
40 |
if (!variable_global_exists("currentroom")) |
41 |
global.currentroom = room; |
42 |
var room_id = global.currentroom; |
43 |
if (instance_exists(obj_savepoint)) |
44 |
global.disable_border = false; |
45 |
if (room_id == 27 || room_id == 881 || room_id == 244 || room_id == 240 || room_id == 233 || room_id == 11 || room_id == 12 || room_id == 2) |
46 |
global.disable_border = true; |
47 |
} |
48 |
draw_enable_alphablend(false); |
49 |
draw_surface_ext(application_surface, xx, yy, global.window_scale, global.window_scale, 0, c_white, 1); |
50 |
if (instance_exists(obj_time)) |
51 |
{ |
52 |
var is_paused = false; |
53 |
with (obj_time) |
54 |
is_paused = paused; |
55 |
if (is_paused) |
56 |
{ |
57 |
if (sprite_exists(obj_time.screenshot)) |
58 |
draw_sprite_ext(obj_time.screenshot, 0, xx, yy, global.window_scale, global.window_scale, 0, c_white, 1); |
59 |
} |
60 |
} |
61 |
draw_enable_alphablend(true); |
62 |
texture_set_interpolation(false); |