|
@@ -206,14 +206,17 @@ bool CPicturePlayer::StartPicPlay()
|
|
|
if (m_busrstop) {
|
|
|
break;
|
|
|
}
|
|
|
- SDL_Surface* image = SDL_LoadBMP(m_strfile_names[index]);
|
|
|
- //SDL_Surface* image = IMG_Load(is->m_strfile_names[index]);
|
|
|
+
|
|
|
+ SDL_Surface* image = IMG_Load(m_strfile_names[index]);
|
|
|
if (NULL == image) {
|
|
|
- m_pHostApi->PicDebug("SDL_LoadBMP %s failed!", m_strfile_names[index]);
|
|
|
- continue;
|
|
|
+ m_pHostApi->PicDebug("IMG_Load %s failed!", m_strfile_names[index]);
|
|
|
+ image = SDL_LoadBMP(m_strfile_names[index]);
|
|
|
+ if (NULL == image) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
- m_pHostApi->PicDebug("SDL_LoadBMP %s success!", m_strfile_names[index]);
|
|
|
+ m_pHostApi->PicDebug("IMG_Load %s success!", m_strfile_names[index]);
|
|
|
}
|
|
|
|
|
|
SDL_Rect dst;
|