Skip to content

Commit

Permalink
Fix PNG viewer for 400x240px files
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Apr 4, 2018
1 parent 5114ecf commit 1a0b3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arm9/source/godmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <A> to continue");
Expand Down

0 comments on commit 1a0b3fc

Please sign in to comment.