From 1a0b3fcc5b74b873d50b4e46009f58689ad64bf7 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Wed, 4 Apr 2018 23:41:12 +0200 Subject: [PATCH] Fix PNG viewer for 400x240px files --- arm9/source/godmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index 6bc06e6df..660c27a4e 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -426,7 +426,7 @@ u32 FileGraphicsViewer(const char* path) { } } - if ((ret == 0) && w && h && (w < SCREEN_WIDTH(ALT_SCREEN)) && (h < SCREEN_HEIGHT)) { + if ((ret == 0) && w && h && (w <= SCREEN_WIDTH(ALT_SCREEN)) && (h <= SCREEN_HEIGHT)) { ClearScreenF(true, true, COLOR_STD_BG); DrawBitmap(ALT_SCREEN, -1, -1, w, h, bitmap); ShowString("Press to continue");