From 3b32a1cb4e2a20fc07f885833b89835e49c8d819 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 15 Jan 2009 20:16:49 +0000 Subject: [PATCH] fix texture debug dumping to flip bmp so that they are wysiwyg --- desmume/src/NDSSystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 19ecb5e4c..d724ed5c3 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -756,7 +756,8 @@ int NDS_WriteBMP_32bppBuffer(int width, int height, const void* buf, const char elems_written += fwrite(&fileheader, 1, sizeof(fileheader), file); elems_written += fwrite(&imageheader, 1, sizeof(imageheader), file); - elems_written += fwrite(buf,1,imageheader.imgsize,file); + for(int i=0;i