Fixed some sign issues in ImageData

This commit is contained in:
bill@Ixion
2009-09-06 11:29:17 -05:00
parent 42a3be2171
commit 716830882d
+1 -1
View File
@@ -168,7 +168,7 @@ namespace devil
love::image::EncodedImageData * ImageData::encodeImageData(love::image::ImageData * d, love::image::Image::ImageFormat f) {
ILubyte * data;
ILuint w = d->getWidth();
ILuint h = d->getHeight();
int h = d->getHeight(); // has to be a signed int so we can make it negative for BMPs
int headerLen, bpp, row, size, padding, filesize;
switch (f) {
case Image::FORMAT_BMP: