mirror of https://github.com/ZDoom/qzdoom.git
- fixed: The check for savegames without picture was reversed.
- fixed: Savegames that were saved without picture did not display the 'No picture' message because the empty PNG container was still recognized as image. SVN r2847 (trunk)
This commit is contained in:
parent
b9185f7c62
commit
917e93e633
|
@ -506,8 +506,12 @@ void DLoadSaveMenu::ExtractSaveData (int index)
|
|||
|
||||
// Extract pic
|
||||
SavePic = PNGTexture_CreateFromFile(png, node->Filename);
|
||||
|
||||
delete png;
|
||||
if (SavePic->GetWidth() == 1 && SavePic->GetHeight() == 1)
|
||||
{
|
||||
delete SavePic;
|
||||
SavePic = NULL;
|
||||
}
|
||||
}
|
||||
fclose (file);
|
||||
}
|
||||
|
@ -551,7 +555,7 @@ void DLoadSaveMenu::Drawer ()
|
|||
if (SaveGames.Size() > 0)
|
||||
{
|
||||
const char *text =
|
||||
(Selected == -1 || SaveGames[Selected]->bOldVersion)
|
||||
(Selected == -1 || !SaveGames[Selected]->bOldVersion)
|
||||
? GStrings("MNU_NOPICTURE") : GStrings("MNU_DIFFVERSION");
|
||||
const int textlen = SmallFont->StringWidth (text)*CleanXfac;
|
||||
|
||||
|
|
Loading…
Reference in New Issue