Fix PNG viewer for 400x240px files

This commit is contained in:
d0k3 2018-04-04 23:41:12 +02:00
parent 5114ecffd4
commit 1a0b3fcc5b

View File

@ -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); ClearScreenF(true, true, COLOR_STD_BG);
DrawBitmap(ALT_SCREEN, -1, -1, w, h, bitmap); DrawBitmap(ALT_SCREEN, -1, -1, w, h, bitmap);
ShowString("Press <A> to continue"); ShowString("Press <A> to continue");