fix build

This commit is contained in:
Daryl 2020-08-09 13:20:04 -06:00
parent 34e45f4d09
commit 6e3960cf67

View File

@ -1038,7 +1038,7 @@ static int MenuGameSelection()
preview.SetPosition(175, -8);
u8* imgBuffer = MEM_ALLOC(512 * 512 * 4);
int previousBrowserIndex = -1;
char screenshotPath[MAXJOLIET + 1];
char imagePath[MAXJOLIET + 1];
HaltGui();
btnLogo->SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
@ -1125,7 +1125,7 @@ static int MenuGameSelection()
{
previousBrowserIndex = browser.selIndex;
previousPreviewImg = GCSettings.PreviewImage;
snprintf(screenshotPath, MAXJOLIET, "%s%s/%s.png", pathPrefix[GCSettings.LoadMethod], getImageFolder(), browserList[browser.selIndex].displayname);
snprintf(imagePath, MAXJOLIET, "%s%s/%s.png", pathPrefix[GCSettings.LoadMethod], getImageFolder(), browserList[browser.selIndex].displayname);
int width, height;
if(DecodePNGFromFile(imagePath, &width, &height, imgBuffer, 512, 512))