Skip to content

Commit 4a45fcb

Browse files
committed
SWC: Support .png files in Show Pic/Movie specials
1 parent 542f8d5 commit 4a45fcb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/supreme/display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ TASK(void) ShowImageOrFlic(const char *str,byte nosnd,byte mode)
154154
}
155155

156156
// BMP loading
157-
if (!strcasecmp(extension, ".bmp"))
157+
if (!strcasecmp(extension, ".bmp") || !strcasecmp(extension, ".png"))
158158
{
159159
EnterPictureDisplay();
160160
if(!nosnd)

source/supreme/filedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static void ObtainFilenames(const char *dir, const char *ext)
3636
extension = &str[dot];
3737
}
3838

39-
if ((menuItems & FM_PICMOVIE) && !(!strcasecmp(extension, ".txt") || !strcasecmp(extension, ".bmp") || !strcasecmp(extension, ".flc")))
39+
if ((menuItems & FM_PICMOVIE) && !(!strcasecmp(extension, ".txt") || !strcasecmp(extension, ".bmp") || !strcasecmp(extension, ".png") || !strcasecmp(extension, ".flc")))
4040
continue;
4141
if ((menuItems & FM_SOUNDS) && !(!strcasecmp(extension, ".wav") || !strcasecmp(extension, ".ogg")))
4242
continue;

0 commit comments

Comments
 (0)