mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 11:39:21 +01:00
increase max game screenshot size to 640x512
This commit is contained in:
parent
5efab5a07f
commit
17ecc4eb30
@ -1045,7 +1045,7 @@ static int MenuGameSelection()
|
|||||||
GuiImage preview;
|
GuiImage preview;
|
||||||
preview.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
|
preview.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
|
||||||
preview.SetPosition(174, -8);
|
preview.SetPosition(174, -8);
|
||||||
u8* imgBuffer = MEM_ALLOC(640 * 480 * 4);
|
u8* imgBuffer = MEM_ALLOC(640 * 512 * 4);
|
||||||
int previousBrowserIndex = -1;
|
int previousBrowserIndex = -1;
|
||||||
char imagePath[MAXJOLIET + 1];
|
char imagePath[MAXJOLIET + 1];
|
||||||
|
|
||||||
@ -1136,7 +1136,7 @@ static int MenuGameSelection()
|
|||||||
snprintf(imagePath, 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;
|
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.SetImage(imgBuffer, width, height);
|
||||||
preview.SetScale( MIN(225.0f / width, 235.0f / height) );
|
preview.SetScale( MIN(225.0f / width, 235.0f / height) );
|
||||||
|
Loading…
Reference in New Issue
Block a user