X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drawing.h;fp=drawing.h;h=61a94d31771bcce46df0669bd5655170cc787b70;hp=8850c7aa7ba40b40d6a7902123cd03185a04d780;hb=937bf65b1c80e9394547e5f105664bd26f3671de;hpb=9115e7d2b5e5b8dc00774fe92db97f1d02b2fee1 diff --git a/drawing.h b/drawing.h index 8850c7a..61a94d3 100644 --- a/drawing.h +++ b/drawing.h @@ -16,7 +16,7 @@ static void DrawDips(void) { *dest=0x81818181; dest+=2; - } + } dest=(uint32 *)(XBuf+272*(12+4)+164+6 ); for(x=0;x<8;x++,dest+=2) @@ -25,10 +25,10 @@ static void DrawDips(void) if(!((vsdip>>x)&1)) da+=(272>>2)*10; - + for(y=4;y;y--,da+=272>>2) *da=0x80808080; - + } } @@ -38,9 +38,9 @@ static void DrawMessage(void) { uint8 *t; howlong--; - t=XBuf+(FSettings.LastSLine-29)*272+32; + t=XBuf+(FSettings.LastSLine-29)*320+32; if(t>=XBuf) - DrawTextTrans(t,272,(uint8 *)errmsg,132); + DrawTextTrans(t,320,(uint8 *)errmsg,132); } } @@ -80,11 +80,11 @@ static void DrawState(void) if(XBaf>=XBuf) for(z=1;z<11;z++) { - if(SaveStateStatus[z%10]) + if(SaveStateStatus[z%10]) { for(y=0;y<13;y++) for(x=0;x<21;x++) - XBaf[y*272+x+z*21+z]=sstat[y*21+x+(z-1)*21*12]; + XBaf[y*272+x+z*21+z]=sstat[y*21+x+(z-1)*21*12]; } else { for(y=0;y<13;y++) for(x=0;x<21;x++) @@ -103,7 +103,7 @@ static void DrawState(void) for(x=0;x<21;x++) XBaf[3264+x+z*21+z*1]=132; } - } + } StateShow--; } @@ -114,9 +114,9 @@ void DrawTextTrans(uint8 *dest, uint32 width, uint8 *textmsg, uint8 fgcolor) uint8 y; uint8 z; - for(x=0;x>z)&1) dest[y*width+(x<<3)+z]=fgcolor; }