Skip to content

Commit

Permalink
increase max game screenshot size to 640x512
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Mar 7, 2021
1 parent ee7c02e commit 04d1532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ static int MenuGameSelection()
GuiImage preview;
preview.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
preview.SetPosition(175, -8);
u8* imgBuffer = MEM_ALLOC(640 * 480 * 4);
u8* imgBuffer = MEM_ALLOC(640 * 512 * 4);
int previousBrowserIndex = -1;
char imagePath[MAXJOLIET + 1];

Expand Down Expand Up @@ -1141,7 +1141,7 @@ static int MenuGameSelection()
snprintf(imagePath, MAXJOLIET, "%s%s/%s.png", pathPrefix[GCSettings.LoadMethod], getImageFolder(), browserList[browser.selIndex].displayname);

int width, height;
if(DecodePNGFromFile(imagePath, &width, &height, imgBuffer, 640, 480))
if(DecodePNGFromFile(imagePath, &width, &height, imgBuffer, 640, 512))
{
preview.SetImage(imgBuffer, width, height);
preview.SetScale( MIN(225.0f / width, 235.0f / height) );
Expand Down

0 comments on commit 04d1532

Please sign in to comment.