SHR: initialize all locals on mode change

This commit is contained in:
Bobbi Webber-Manners 2023-01-07 21:48:42 -05:00
parent f6f6c20c37
commit 8f0564f38f
1 changed files with 11 additions and 1 deletions

View File

@ -971,8 +971,10 @@ SHRVDU24 >>> ENTMAIN
* Reset graphics window
* Initialize other locals (called on MODE)
SHRVDU26 >>> ENTMAIN
STZ SHRWINLFT+0
STZ SHRWINLFT+0 ; Graphics window
STZ SHRWINLFT+1
STZ SHRWINBTM+0
STZ SHRWINBTM+1
@ -984,6 +986,14 @@ SHRVDU26 >>> ENTMAIN
STA SHRWINTOP+0
LDA #>199
STA SHRWINTOP+1
STZ SHRXPIXEL+0 ; Other locals
STZ SHRXPIXEL+1
STZ SHRYPIXEL+0
STZ SHRYPIXEL+1
STZ SHRCURROUT
STZ SHRPREVOUT
>>> XF2AUX,VDU26RET