mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Moved image scaling & optimization logic to separate classes
This commit is contained in:
@@ -248,10 +248,11 @@ std::shared_ptr<SDLImageShared> RenderHandler::loadScaledImage(const ImageLocato
|
||||
pathToLoad = *remappedLocator.image;
|
||||
}
|
||||
|
||||
if(!locator.image)
|
||||
return nullptr;
|
||||
if(locator.image)
|
||||
pathToLoad = *locator.image;
|
||||
|
||||
pathToLoad = *locator.image;
|
||||
if (pathToLoad.empty())
|
||||
return nullptr;
|
||||
|
||||
std::string imagePathString = pathToLoad.getName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user