This commit is contained in:
Joshua Bell 2018-02-12 21:36:41 -08:00
parent 72170ec571
commit a054bfdb49
2 changed files with 42 additions and 22 deletions

View File

@ -13945,7 +13945,7 @@ L8884: lda L8830,x
jsr window_lookup
stax winfo_ptr
ldy #$17
ldy #MGTK::winfo_offset_port + MGTK::grafport_offset_viewloc + 3
ldx #3
: lda (winfo_ptr),y
sta L890D,x
@ -13953,7 +13953,7 @@ L8884: lda L8830,x
dex
bpl :-
ldy #$1F
ldy #MGTK::winfo_offset_port + MGTK::grafport_offset_maprect + 3
ldx #3
: lda (winfo_ptr),y
sta L8911,x
@ -14033,20 +14033,23 @@ L8914: .byte 0
lda active_window_id
jsr window_lookup
stax winfo_ptr
ldy #$17
ldy #MGTK::winfo_offset_port + MGTK::grafport_offset_viewloc + 3
ldx #$03
L892F: lda (winfo_ptr),y
: lda (winfo_ptr),y
sta L898F,x
dey
dex
bpl L892F
ldy #$1F
bpl :-
ldy #MGTK::winfo_offset_port + MGTK::grafport_offset_maprect + 3
ldx #$03
L893C: lda (winfo_ptr),y
: lda (winfo_ptr),y
sta L8993,x
dey
dex
bpl L893C
bpl :-
ldy #$03
lda (entry_ptr),y
sec

View File

@ -593,20 +593,37 @@ inpoly_outside := $00
;;; ==================================================
;;; Offsets
winfo_offset_viewloc := 0
winfo_offset_viewloc_xcoord := 0
winfo_offset_viewloc_ycoord := 2
winfo_offset_mapbits := 4
winfo_offset_mapwidth := 6
winfo_offset_maprect := 8
winfo_offset_pattern := 16
winfo_offset_colormasks := 24
winfo_offset_penloc := 26
winfo_offset_penwidth := 30
winfo_offset_penheight := 31
winfo_offset_penmode := 32
winfo_offset_textback := 33
winfo_offset_textfont := 34
grafport_offset_viewloc := 0
grafport_offset_viewloc_xcoord := 0
grafport_offset_viewloc_ycoord := 2
grafport_offset_mapbits := 4
grafport_offset_mapwidth := 6
grafport_offset_maprect := 8
grafport_offset_pattern := 16
grafport_offset_colormasks := 24
grafport_offset_penloc := 26
grafport_offset_penwidth := 30
grafport_offset_penheight := 31
grafport_offset_penmode := 32
grafport_offset_textback := 33
grafport_offset_textfont := 34
winfo_offset_window_id := 0
winfo_offset_options := 1
winfo_offset_title := 2
winfo_offset_hscroll := 4
winfo_offset_vscroll := 5
winfo_offset_hthumbmax := 6
winfo_offset_hthumbpos := 7
winfo_offset_vthumbmax := 8
winfo_offset_vthumbpos := 9
winfo_offset_status := 10
winfo_offset_mincontwidth := 12
winfo_offset_maxcontwidth := 14
winfo_offset_mincontheight := 16
winfo_offset_maxcontheight := 18
winfo_offset_port := 20
winfo_offset_nextwinfo := 56
.endscope ; MGTK