Load_C64() bitmaps are 1bpp
+ log in Save_C64_window() + comment
This commit is contained in:
parent
aa9d0ac3f0
commit
0a30051d91
@ -2243,6 +2243,7 @@ static const char *c64_format_names[] = {
|
|||||||
*
|
*
|
||||||
* http://unusedino.de/ec64/technical/formats/bitmap.html
|
* http://unusedino.de/ec64/technical/formats/bitmap.html
|
||||||
* http://codebase64.org/doku.php?id=base:c64_grafix_files_specs_list_v0.03
|
* http://codebase64.org/doku.php?id=base:c64_grafix_files_specs_list_v0.03
|
||||||
|
* https://sourceforge.net/p/view64/code/HEAD/tree/trunk/libview64.c#l3737
|
||||||
*/
|
*/
|
||||||
void Test_C64(T_IO_Context * context, FILE * file)
|
void Test_C64(T_IO_Context * context, FILE * file)
|
||||||
{
|
{
|
||||||
@ -2777,7 +2778,7 @@ void Load_C64(T_IO_Context * context)
|
|||||||
else
|
else
|
||||||
snprintf(context->Comment,COMMENT_SIZE+1,"%s, no addr",c64_format_names[loadFormat]);
|
snprintf(context->Comment,COMMENT_SIZE+1,"%s, no addr",c64_format_names[loadFormat]);
|
||||||
|
|
||||||
Pre_load(context, width, height, file_size, FORMAT_C64, context->Ratio, 4); // Do this as soon as you can
|
Pre_load(context, width, height, file_size, FORMAT_C64, context->Ratio, (loadFormat == F_bitmap) ? 1 : 4); // Do this as soon as you can
|
||||||
|
|
||||||
memcpy(context->Palette,pal,48); // this set the software palette for grafx2
|
memcpy(context->Palette,pal,48); // this set the software palette for grafx2
|
||||||
// Transparent color "16" is a dark grey that is distinguishable
|
// Transparent color "16" is a dark grey that is distinguishable
|
||||||
@ -2874,7 +2875,7 @@ static int Save_C64_window(enum c64_format *saveFormat, byte *saveWhat, byte *lo
|
|||||||
{
|
{
|
||||||
case 3: // Save what
|
case 3: // Save what
|
||||||
*saveWhat = Window_attribute2;
|
*saveWhat = Window_attribute2;
|
||||||
//printf("what=%d\n",Window_attribute2);
|
GFX2_Log(GFX2_DEBUG, "Save_C64_Window() : what=%d (%s)\n", *saveWhat, what_label[*saveWhat]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4: // Load addr
|
case 4: // Load addr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user