Skip to content

Commit b91bd6f

Browse files
committed
fix c128 palette.
1 parent 52000e5 commit b91bd6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/c128/screen.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ extern void install_nmi_trampoline(void); /* nmi_trampoline.s */
4747
*/
4848
void screen_init_hook(void)
4949
{
50+
unsigned char pal[2]={0,1};
5051
install_nmi_trampoline();
5152
fast();
53+
tgi_setpalette(pal);
5254
}
5355

5456
/**
@@ -180,7 +182,7 @@ void screen_update_colors(void)
180182
{
181183
pal[0]=config.color_background;
182184
pal[1]=config.color_foreground;
183-
tgi_setpalette(pal);
185+
/* tgi_setpalette(pal); */
184186
}
185187

186188
/**

0 commit comments

Comments
 (0)