mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2024-12-12 09:29:03 +00:00
Deleting unallocated views is now safe and harmless
This commit is contained in:
parent
23272a30fd
commit
2a9945abaf
7
views.s
7
views.s
@ -331,14 +331,17 @@ WGCreateButton_done:
|
||||
WGDeleteView:
|
||||
SAVE_AY
|
||||
|
||||
jsr WGEraseView
|
||||
|
||||
LDY_ACTIVEVIEW
|
||||
lda WG_VIEWRECORDS+2,y
|
||||
beq WGDeleteView_done ; Not an allocated view
|
||||
|
||||
jsr WGEraseView
|
||||
|
||||
lda #0
|
||||
sta WG_VIEWRECORDS+2,y ; 0 width indicates unused view
|
||||
jsr WGViewPaintAll
|
||||
|
||||
WGDeleteView_done:
|
||||
RESTORE_AY
|
||||
rts
|
||||
|
||||
|
BIN
weegui.dsk
BIN
weegui.dsk
Binary file not shown.
Loading…
Reference in New Issue
Block a user