generateicon: fix inconsistent format letter vs. vararg in fprintf.

git-svn-id: https://svn.eduke32.com/eduke32@2598 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-04-08 15:52:24 +00:00
parent 5777eae026
commit 714ecf0a21

View file

@ -22,7 +22,7 @@ int writeicon(FILE *fp, struct icon *ico)
for (i=0;i<ico->width*ico->height;i++) { for (i=0;i<ico->width*ico->height;i++) {
if ((i%6) == 0) Bfprintf(fp,"\t"); if ((i%6) == 0) Bfprintf(fp,"\t");
else Bfprintf(fp," "); else Bfprintf(fp," ");
Bfprintf(fp, "0x%08x,", B_LITTLE32(ico->pixels[i])); Bfprintf(fp, "0x%08lx,", (long)B_LITTLE32(ico->pixels[i]));
if ((i%6) == 5) Bfprintf(fp,"\n"); if ((i%6) == 5) Bfprintf(fp,"\n");
} }
if ((i%16) > 0) Bfprintf(fp, "\n"); if ((i%16) > 0) Bfprintf(fp, "\n");
@ -110,4 +110,3 @@ int main(int argc, char **argv)
return 0; return 0;
} }