|
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
|
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_ps4
function scr_draw_background_ps4(arg0, arg1, arg2)
{
var bg = arg0;
var xx = arg1;
var yy = arg2;
if (os_type == os_ps4 || scr_is_switch_os() || os_type == os_ps5)
{
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_ps4
function scr_draw_background_ps4(arg0, arg1, arg2)
{
var bg = arg0;
var xx = arg1;
var yy = arg2;
if (os_type == os_ps4 || scr_is_switch_os() || os_type == os_ps5)
{
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
|
var room_id = room;
|
|
41
|
if (instance_exists(obj_savepoint))
|
|
42
|
global.disable_border = false;
|
|
43
|
if (room_id == PLACE_CONTACT || room_id == 886 || room_id == PLACE_MENU || room_id == room_gameover || room_id == PLACE_DOG || room_id == ROOM_INITIALIZE || room_id == room_title_placeholder || room_id == room_intro_ch2)
|
|
44
|
global.disable_border = true;
|
|
45
|
}
|
|
46
|
draw_enable_alphablend(false);
|
|
47
|
draw_surface_ext(application_surface, xx, yy, global.window_scale, global.window_scale, 0, c_white, 1);
|
|
48
|
if (instance_exists(obj_time))
|
|
49
|
{
|
|
50
|
var is_paused = false;
|
|
51
|
with (obj_time)
|
|
52
|
is_paused = paused;
|
|
53
|
if (is_paused)
|
|
54
|
{
|
|
55
|
if (sprite_exists(obj_time.screenshot))
|
|
56
|
draw_sprite_ext(obj_time.screenshot, 0, xx, yy, global.window_scale, global.window_scale, 0, c_white, 1);
|
|
57
|
}
|
|
58
|
}
|
|
59
|
draw_enable_alphablend(true);
|
|
60
|
texture_set_interpolation(false);
|