Mac window

This commit is contained in:
Tanasart 2023-03-21 18:50:08 +07:00
parent 25378e6c55
commit 049c170700
4 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
extensions
extensions
datafiles/themes/default

View File

@ -9,6 +9,7 @@ enum WINDOW_DRAG_MODE {
function mac_window_init() {
globalvar __win_is_maximized, __win_min_x, __win_min_y, __win_min_w, __win_min_h;
__win_delay = 2;
__win_is_dragging = 0;
__win_drag_mx = 0;
__win_drag_my = 0;

View File

@ -1,4 +1,6 @@
function mac_window_step() {
if(--__win_delay) return;
var _mx = mouse_raw_x;
var _my = mouse_raw_y;

View File

@ -251,7 +251,7 @@
setException();
}
if(!LOADING) {
if(OS != os_macosx && !LOADING) {
if(PREF_MAP[? "window_maximize"]) {
gameframe_maximize();
} else {