]> git.sur5r.net Git - cc65/commitdiff
When initializing the driver, set white as the drawing color.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 Nov 2009 22:33:27 +0000 (22:33 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 Nov 2009 22:33:27 +0000 (22:33 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4420 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/tgi/tgi_init.s

index b061beda10b19e16b7d283d9577e408866d135c1..636c5aa16c7108d89b05c9e5ef51c861426a260d 100644 (file)
         jsr     tgi_setpalette          ; Set the default palette.
         jsr     tgi_geterror            ; Clear a possible error code
 
-; Set the drawing color to the maximum color
+; Set the drawing color to white
 
-@L1:    ldx     _tgi_colorcount
-        dex
-        txa
-        jsr     _tgi_setcolor           ; tgi_setcolor (tgi_getmaxcolor ());
+@L1:    lda     TGI_COLOR_WHITE
+        jsr     _tgi_setcolor           ; tgi_setcolor (TGI_COLOR_WHITE);
 
 ; Set the text style