mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2026-03-15 07:16:36 +00:00
Deleting unallocated views is now safe and harmless
This commit is contained in:
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.
Reference in New Issue
Block a user