diff --git a/cocos2dx/sprite_nodes/CCSpriteFrameCache.cpp b/cocos2dx/sprite_nodes/CCSpriteFrameCache.cpp index 5ba469a81e..97a3695446 100644 --- a/cocos2dx/sprite_nodes/CCSpriteFrameCache.cpp +++ b/cocos2dx/sprite_nodes/CCSpriteFrameCache.cpp @@ -229,7 +229,7 @@ void CCSpriteFrameCache::addSpriteFramesWithFile(const char *pszPlist) { CCAssert(pszPlist, "plist filename should not be NULL"); - if (m_pLoadedFileNames->find(pszPlist) != m_pLoadedFileNames->end()) + if (m_pLoadedFileNames->find(pszPlist) == m_pLoadedFileNames->end()) { const char *pszPath = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath(pszPlist); CCDictionary *dict = CCDictionary::dictionaryWithContentsOfFileThreadSafe(pszPath); diff --git a/tests/AppDelegate.cpp b/tests/AppDelegate.cpp index a52503fc57..2a58f05895 100644 --- a/tests/AppDelegate.cpp +++ b/tests/AppDelegate.cpp @@ -23,7 +23,7 @@ bool AppDelegate::applicationDidFinishLaunching() pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView()); // enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices. - pDirector->enableRetinaDisplay(true); + // pDirector->enableRetinaDisplay(true); // turn on display FPS pDirector->setDisplayStats(true);