From afa3577be2a00552c115bab1034a1c04d74a08fc Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Tue, 27 Sep 2011 18:58:46 +0000 Subject: [PATCH] fix non *.png logos git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1716 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c17e7cf9606ae5b9451fd2bc1e81b0595e98c60b Author: gixxpunk Date: 2011-09-27 (Tue, 27 Sep 2011) Origin message was: ------------------ - fix non *.png logos git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1716 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/driver/pictureviewer/pictureviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 3996d3e83..ab4539640 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -541,7 +541,7 @@ fb_pixel_t * CPictureViewer::getImage(const std::string & name, int width, int h return false; } #ifdef FBV_SUPPORT_PNG - if (name.find(".png")) // FIXME + if (name.find(".png") != std::string::npos) load_ret = png_load_ext(name.c_str(), &buffer, &x, &y, &bpp); else #endif