mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2026-10-25 02:02:29 +00:00
Deleting unallocated views is now safe and harmless
This commit is contained in:
1 parent
23272a30fd
commit
2a9945abaf
2 files changed
+5
-2
No files matched your search
@@ -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
Binary file not shown.
Reference in new issue
Block a user