Skip to content

Commit

Permalink
fix c128 palette.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 15, 2019
1 parent 52000e5 commit b91bd6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/c128/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ extern void install_nmi_trampoline(void); /* nmi_trampoline.s */
*/
void screen_init_hook(void)
{
unsigned char pal[2]={0,1};
install_nmi_trampoline();
fast();
tgi_setpalette(pal);
}

/**
Expand Down Expand Up @@ -180,7 +182,7 @@ void screen_update_colors(void)
{
pal[0]=config.color_background;
pal[1]=config.color_foreground;
tgi_setpalette(pal);
/* tgi_setpalette(pal); */
}

/**
Expand Down

0 comments on commit b91bd6f

Please sign in to comment.