4-space tabs for c64 load/save code

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1018 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2009-09-05 20:52:43 +00:00
parent b92e8f288e
commit b934f1d57c

View File

@ -6045,7 +6045,8 @@ int Save_C64_hires(char *filename)
byte colors[1000],bitmap[8000]; byte colors[1000],bitmap[8000];
FILE *file; FILE *file;
for(x=0;x<1000;x++)colors[x]=1; // init colormem to black/white for(x=0;x<1000;x++)
colors[x]=1; // init colormem to black/white
for(cy=0; cy<25; cy++) // Character line, 25 lines for(cy=0; cy<25; cy++) // Character line, 25 lines
{ {
@ -6121,13 +6122,13 @@ int Save_C64_hires(char *filename)
int Save_C64_multi(char *filename) int Save_C64_multi(char *filename)
{ {
/* /*
BITS COLOR INFORMATION COMES FROM BITS COLOR INFORMATION COMES FROM
00 Background color #0 (screen color) 00 Background color #0 (screen color)
01 Upper 4 bits of screen memory 01 Upper 4 bits of screen memory
10 Lower 4 bits of screen memory 10 Lower 4 bits of screen memory
11 Color nybble (nybble = 1/2 byte = 4 bits) 11 Color nybble (nybble = 1/2 byte = 4 bits)
*/ */
int cx,cy,x,y,c[4]={0,0,0,0},color,lut[16],bits,pixel,pos=0; int cx,cy,x,y,c[4]={0,0,0,0},color,lut[16],bits,pixel,pos=0;
byte bitmap[8000],screen[1000],nybble[1000]; byte bitmap[8000],screen[1000],nybble[1000];