1 |
if (surf_screen_noloop == false) |
2 |
{ |
3 |
surface_set_target(surf_screen_copy); |
4 |
draw_clear_alpha(c_black, 0); |
5 |
surface_reset_target(); |
6 |
surface_copy(surf_screen_copy, 0, 0, application_surface); |
7 |
surf_screen_noloop = true; |
8 |
} |
9 |
else if (!surface_exists(surf_screen_copy)) |
10 |
{ |
11 |
surf_screen_noloop = false; |
12 |
exit; |
13 |
} |
14 |
var w_scale = surface_get_width(application_surface) / 320; |
15 |
var h_scale = surface_get_height(application_surface) / 240; |
16 |
var w_multiplier = 320 / surface_get_width(application_surface); |
17 |
var h_multiplier = 240 / surface_get_height(application_surface); |
18 |
for (var i = 0; i < array_length(line_y); i++) |
19 |
draw_surface_part_ext(surf_screen_copy, i * w_scale, 0, w_scale, 320 * h_scale, i, clamp(line_y[i], 0, 9999), w_multiplier, h_multiplier, 16777215, 1); |