mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2025-03-03 02:29:01 +00:00
Polish
- Improvements to BASIC sample code - Fixed button painting leaving text in inverse
This commit is contained in:
parent
36e4157db7
commit
2b4a194df3
@ -47,7 +47,7 @@ main:
|
||||
; Show off some WeeGUI features
|
||||
|
||||
;jmp tortureTestPrint
|
||||
;jmp tortureTestRects
|
||||
jmp tortureTestRects
|
||||
ldx #WGClearScreen
|
||||
jsr WeeGUI
|
||||
|
||||
|
5
views.s
5
views.s
@ -377,6 +377,9 @@ paintCheck_done:
|
||||
; Y: Index into view records of button to paint
|
||||
; Side effects: Clobbers all registers,P0,P1,S1
|
||||
paintButton:
|
||||
lda INVERSE ; Preserve INVERSE state during this
|
||||
pha
|
||||
|
||||
lda WG_VIEWRECORDS+12,y ; Prep the title string
|
||||
sta PARAM0
|
||||
lda WG_VIEWRECORDS+13,y
|
||||
@ -438,6 +441,8 @@ paintButton_titleMarginRightLoop:
|
||||
jmp paintButton_titleMarginRightLoop
|
||||
|
||||
paintButton_done:
|
||||
pla ; Restore inverse state
|
||||
sta INVERSE
|
||||
rts
|
||||
|
||||
|
||||
|
BIN
weegui.dsk
BIN
weegui.dsk
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user