Skip to content

Commit

Permalink
Fix image slideshow folder support not functioning
Browse files Browse the repository at this point in the history
  • Loading branch information
notr1ch committed Jul 21, 2015
1 parent 95b5074 commit 0f39252
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/BitmapTransitionSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ class BitmapTransitionSource : public ImageSource

String fullPath = strBitmap + "\\" + fd.fileName;

CTSTR ext = GetPathExtension(fullPath.Array());
String extStr = GetPathExtension(fullPath.Array());
CTSTR ext = extStr.Array();
if (!scmp(ext, TEXT("jpg")) || !scmp(ext, TEXT("png")) || !scmp(ext, TEXT("gif")) || !scmp(ext, TEXT("bmp")) || !scmp(ext, TEXT("dds")))
{
BitmapImage *bitmapImage = new BitmapImage;
Expand Down Expand Up @@ -318,7 +319,8 @@ class BitmapTransitionSource : public ImageSource

String fullPath = strBitmap + "\\" + fd.fileName;

CTSTR ext = GetPathExtension(fullPath.Array());
String extStr = GetPathExtension(fullPath.Array());
CTSTR ext = extStr.Array();
if (!scmp(ext, TEXT("jpg")) || !scmp(ext, TEXT("png")) || !scmp(ext, TEXT("gif")) || !scmp(ext, TEXT("bmp")) || !scmp(ext, TEXT("dds")))
{
firstBitmapFile = fullPath;
Expand Down

0 comments on commit 0f39252

Please sign in to comment.