diff --git a/desmume/src/windows/hotkey.cpp b/desmume/src/windows/hotkey.cpp index df441f5ab..971bd5e1d 100644 --- a/desmume/src/windows/hotkey.cpp +++ b/desmume/src/windows/hotkey.cpp @@ -118,9 +118,10 @@ void HK_PrintScreen(int param) strcpy(outFilename,filename.c_str()); if(!GetSaveFileName(&ofn)) return; + filename = outFilename; - if(toupper(strright(filename,4)) == ".BMP") - NDS_WriteBMP(filename.c_str()); + if(toupper(strright(filename,4)) == ".PNG") + NDS_WritePNG(filename.c_str()); else if(toupper(strright(filename,4)) == ".BMP") NDS_WriteBMP(filename.c_str()); }