removed printf and corrected fallback img that was not used correctly if user theme

This commit is contained in:
Vincent-FK 2021-06-25 00:46:38 +02:00
parent ee5489b18e
commit 9bdb23d7da
3 changed files with 5 additions and 5 deletions

View File

@ -419,7 +419,8 @@ void ReloadableMedia::reloadTexture( bool previousItem )
{ {
std::string imagePath; std::string imagePath;
ImageBuilder imageBuild; ImageBuilder imageBuild;
imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName ); //imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
imagePath = Utils::combinePath(Configuration::absolutePath, "collections", collectionName ); // forcing absolutePath and folder "Collection" for backups
imagePath = Utils::combinePath( imagePath, "system_artwork" ); imagePath = Utils::combinePath( imagePath, "system_artwork" );
loadedComponent_ = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ ); loadedComponent_ = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ );
} }

View File

@ -726,7 +726,8 @@ bool ScrollingList::allocateTexture( unsigned int index, Item *item )
// Image fallback // Image fallback
if ( !t && imageType_.compare(std::string("null"))){ if ( !t && imageType_.compare(std::string("null"))){
imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName ); //imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
imagePath = Utils::combinePath(Configuration::absolutePath, "collections", collectionName ); // forcing absolutePath and folder "Collection" for backups
imagePath = Utils::combinePath( imagePath, "system_artwork" ); imagePath = Utils::combinePath( imagePath, "system_artwork" );
t = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ ); t = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ );
} }

View File

@ -100,8 +100,6 @@ Page *PageBuilder::buildPage( std::string collectionName )
} }
layoutFile = Utils::combinePath(layoutPath, layoutPage + ".xml"); layoutFile = Utils::combinePath(layoutPath, layoutPage + ".xml");
printf("In %s, layoutFile is %s \n", __func__, layoutFile.c_str());
if ( screenWidth_*3/4 == screenHeight_ ) if ( screenWidth_*3/4 == screenHeight_ )
layoutFileAspect = Utils::combinePath(layoutPath, layoutPage + " 4x3.xml"); layoutFileAspect = Utils::combinePath(layoutPath, layoutPage + " 4x3.xml");
else if ( screenWidth_*4/3 == screenHeight_ ) else if ( screenWidth_*4/3 == screenHeight_ )