mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Fix PNG viewer for 400x240px files
This commit is contained in:
parent
5114ecffd4
commit
1a0b3fcc5b
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user