diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index e782d680a..e3f8a5f02 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1124,7 +1124,7 @@ int NDS_WritePNG(const char *fname) int x, y; int width=256; int height=192*2; - u16 * bmp = (u16 *)GPU_screen; + u16 * bmp = (u16 *)GPU_tempScreen; FILE *pp=NULL; uint8 *compmem = NULL; uLongf compmemsize = (uLongf)( (height * (width + 1) * 3 * 1.001 + 1) + 12 ); @@ -1250,7 +1250,7 @@ int NDS_WriteBMP(const char *filename) bmpimgheader_struct imageheader; FILE *file; int i,j; - u16 * bmp = (u16 *)GPU_screen; + u16 * bmp = (u16 *)GPU_tempScreen; size_t elems_written = 0; memset(&fileheader, 0, sizeof(fileheader));