Skip to content

Commit

Permalink
Move proc to fix IT build
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Jul 23, 2021
1 parent f0e731a commit 3a1c739
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions desktop/main.s
Original file line number Diff line number Diff line change
Expand Up @@ -13567,28 +13567,6 @@ RAMSLOT := DEVADR + $16 ; Slot 3, Drive 2
driver: jmp (RAMSLOT)
.endproc

;;; ============================================================
;;; Determine if mouse moved (returns w/ carry set if moved)
;;; Used in dialogs to possibly change cursor

.proc check_mouse_moved
ldx #.sizeof(MGTK::Point)-1
: lda event_coords,x
cmp coords,x
bne diff
dex
bpl :-
clc
rts

diff: COPY_STRUCT MGTK::Point, event_coords, coords
sec
rts

DEFINE_POINT coords, 0, 0

.endproc

;;; ============================================================

PAD_TO $A500
Expand Down Expand Up @@ -15966,6 +15944,28 @@ set_penmode_notcopy:
rts
.endproc

;;; ============================================================
;;; Determine if mouse moved (returns w/ carry set if moved)
;;; Used in dialogs to possibly change cursor

.proc check_mouse_moved
ldx #.sizeof(MGTK::Point)-1
: lda event_coords,x
cmp coords,x
bne diff
dex
bpl :-
clc
rts

diff: COPY_STRUCT MGTK::Point, event_coords, coords
sec
rts

DEFINE_POINT coords, 0, 0

.endproc

;;; ============================================================

;;; ============================================================
Expand Down

0 comments on commit 3a1c739

Please sign in to comment.