From 24d58573fe116ec30487a0663db19966f084d402 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Oct 2003 09:28:01 +0000 Subject: [PATCH] GETDEFPALETTE will no longer return an error git-svn-id: svn://svn.cc65.org/cc65/trunk@2567 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/tgi/tgi_init.s | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libsrc/tgi/tgi_init.s b/libsrc/tgi/tgi_init.s index 136f94f7a..063b56ee1 100644 --- a/libsrc/tgi/tgi_init.s +++ b/libsrc/tgi/tgi_init.s @@ -26,12 +26,8 @@ jsr tgi_getdefpalette ; Get the default palette into A/X sta ptr1 stx ptr1+1 ; Save it - jsr tgi_geterror ; Check for errors in getdefpalette - cmp #TGI_ERR_OK - 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. + jsr tgi_setpalette ; Set the default palette. + jsr tgi_geterror ; Clear a possible error code ; Set the drawing color to the maximum color