mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +01:00
Mac window
This commit is contained in:
parent
25378e6c55
commit
049c170700
4 changed files with 6 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
extensions
|
||||
extensions
|
||||
datafiles/themes/default
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function mac_window_step() {
|
||||
if(--__win_delay) return;
|
||||
|
||||
var _mx = mouse_raw_x;
|
||||
var _my = mouse_raw_y;
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
setException();
|
||||
}
|
||||
|
||||
if(!LOADING) {
|
||||
if(OS != os_macosx && !LOADING) {
|
||||
if(PREF_MAP[? "window_maximize"]) {
|
||||
gameframe_maximize();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue