-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Version: 1.1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var _d = new Vector2(window_get_width(), window_get_height()); | ||
|
||
auto_frame(_d); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
if (track_window_resize) prev_win_size = new Vector2(window_get_width(), window_get_height()); | ||
|
||
fixed_display_size = !(os_type == os_ios || os_type == os_android); | ||
var _d = new Vector2(0, 0); | ||
|
||
if (fixed_display_size) { | ||
_d.y = fixedDisplay_height; | ||
_d.x = fixedDisplay_width; | ||
window_set_rectangle(abs(display_get_width() - _d.x) / 2, abs(display_get_height() - _d.y) / 2, _d.x, _d.y); | ||
} | ||
|
||
else { | ||
_d.y = display_get_height(); | ||
_d.x = display_get_width(); | ||
window_set_size(_d.x, _d.y); | ||
} | ||
|
||
auto_frame(_d); | ||
|
||
window_size = new Vector2(_d.x, _d.y); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if (track_window_resize) { | ||
var _cur_win_size = new Vector2(window_get_width(), window_get_height()); | ||
|
||
if (_cur_win_size.x != prev_win_size.x || _cur_win_size.y != prev_win_size.y) { | ||
alarm[0] = 5; | ||
} | ||
|
||
prev_win_size.x = _cur_win_size.x; | ||
prev_win_size.y = _cur_win_size.y; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.