diff --git a/asmdemo.s b/asmdemo.s index c1dc39b..def0b9f 100644 --- a/asmdemo.s +++ b/asmdemo.s @@ -47,7 +47,7 @@ main: ; Show off some WeeGUI features ;jmp tortureTestPrint - ;jmp tortureTestRects + jmp tortureTestRects ldx #WGClearScreen jsr WeeGUI diff --git a/views.s b/views.s index 5baa026..878727c 100644 --- a/views.s +++ b/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 diff --git a/weegui.dsk b/weegui.dsk index f67fd17..c29022c 100644 Binary files a/weegui.dsk and b/weegui.dsk differ