Shut up gcc warnings for ignored fwrite returns. Frankly, who cares about bmp images :P

This commit is contained in:
riccardom 2009-03-17 19:23:21 +00:00
parent 3dca16b37a
commit 1eed08c7ae
1 changed files with 4 additions and 4 deletions

View File

@ -1136,10 +1136,10 @@ int NDS_WriteBMP_32bppBuffer(int width, int height, const void* buf, const char
{ {
u8* pixel = (u8*)buf + (height-i-1)*width*4; u8* pixel = (u8*)buf + (height-i-1)*width*4;
pixel += (x*4); pixel += (x*4);
fwrite(pixel+2,1,1,file); elems_written += fwrite(pixel+2,1,1,file);
fwrite(pixel +1,1,1,file); elems_written += fwrite(pixel+1,1,1,file);
fwrite(pixel +0,1,1,file); elems_written += fwrite(pixel+0,1,1,file);
fwrite(pixel +3,1,1,file); elems_written += fwrite(pixel+3,1,1,file);
} }
fclose(file); fclose(file);