diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index acf61be32..92e4e63d8 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -180,11 +180,8 @@ bool CScreenSaver::ReadDir() for (p = curr_ext; *p; ++p) *p = (char)tolower(*p); //printf("%s\n",curr_ext); - if((strcmp(".jpg",curr_ext)) - //|| (strcmp(".png",curr_ext)) - //|| (strcmp(".bmp",curr_ext)) - ) - continue; + if (strcmp(".jpg",curr_ext) && strcmp(".png",curr_ext)) + continue; str += "/"; str += (*dirpointer).d_name;