mirror of
https://github.com/cc65/cc65.git
synced 2025-02-04 13:32:54 +00:00
Fixed problem with tgi_init and tgi_setpalette
git-svn-id: svn://svn.cc65.org/cc65/trunk@2553 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
91f62f4849
commit
b7b9455fcd
@ -25,10 +25,13 @@
|
|||||||
|
|
||||||
jsr tgi_getdefpalette ; Get the default palette into A/X
|
jsr tgi_getdefpalette ; Get the default palette into A/X
|
||||||
sta ptr1
|
sta ptr1
|
||||||
stx ptr1+1
|
stx ptr1+1 ; Save it
|
||||||
ora ptr1+1 ; Do we have a default palette?
|
jsr tgi_geterror ; Check for errors in getdefpalette
|
||||||
beq @L1 ; Jump if no
|
cmp #TGI_ERR_OK
|
||||||
jsr tgi_setpalette ; Set the default palette
|
beq @L1 ; Jump if there is no default palette
|
||||||
|
jsr tgi_setpalette ; Set the default palette. Since we're
|
||||||
|
; setting the default palette, we don't
|
||||||
|
; expect errors here.
|
||||||
|
|
||||||
; Set the drawing color to the maximum color
|
; Set the drawing color to the maximum color
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user