Convert image to FLI when enabling the mode. show errors in layer 4

This commit is contained in:
Thomas Bernard
2018-12-10 20:26:36 +01:00
parent fd6e420008
commit 2d392fb7b1
4 changed files with 106 additions and 12 deletions

View File

@@ -3348,7 +3348,10 @@ int Save_C64_fli_monolayer(T_IO_Context *context, byte saveWhat, word loadAddr)
memset(color_ram, 0, sizeof(color_ram));
memset(background, 0, sizeof(background));
if (C64_pixels_to_FLI(bitmap, screen_ram, color_ram, background, context->Target_address, context->Pitch) > 0)
memset(color_ram, 0xff, 40*25); // no hint
memset(background, 0xff, 200);
if (C64_pixels_to_FLI(bitmap, screen_ram, color_ram, background, context->Target_address, context->Pitch, 0) > 0)
return 1;
file = Open_file_write(context);