diff --git a/src/miscfileformats.c b/src/miscfileformats.c index b4cf7115..6c032a7b 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -2097,14 +2097,14 @@ void Load_C64_hires(T_IO_Context *context, byte *bitmap, byte *colors) void Load_C64_multi(T_IO_Context *context, byte *bitmap, byte *colors, byte *nybble, byte background) { int cx,cy,x,y,c[4],pixel,color; - c[0]=background; + c[0]=background&15; for(cy=0; cy<25; cy++) { for(cx=0; cx<40; cx++) { c[1]=colors[cy*40+cx]>>4; c[2]=colors[cy*40+cx]&15; - c[3]=nybble[cy*40+cx]; + c[3]=nybble[cy*40+cx]&15; for(y=0; y<8; y++) { @@ -2176,6 +2176,7 @@ void Load_C64(T_IO_Context * context) case 8000: // raw bitmap hasLoadAddr=0; loadFormat=F_bitmap; + break; case 8002: // raw bitmap with loadaddr hasLoadAddr=1;