This commit is contained in:
Laserlicht
2025-07-11 20:05:16 +02:00
parent 03870ee28a
commit a6f95433a2
+3 -3
View File
@@ -137,7 +137,7 @@ RenderHandler::AnimationLayoutMap & RenderHandler::getAnimationLayout(const Anim
auto it = animationLayouts.find(actualPath); auto it = animationLayouts.find(actualPath);
if (it != animationLayouts.end() && settings["video"]["useHdTextures"].Bool()) if (it != animationLayouts.end() && (settings["video"]["useHdTextures"].Bool() || scalingFactor == 1))
return it->second; return it->second;
AnimationLayoutMap result; AnimationLayoutMap result;
@@ -304,10 +304,10 @@ std::shared_ptr<SDLImageShared> RenderHandler::loadScaledImage(const ImageLocato
auto imagePathSprites = ImagePath::builtin(imagePathString).addPrefix(scaledSpritesPath.at(locator.scalingFactor)); auto imagePathSprites = ImagePath::builtin(imagePathString).addPrefix(scaledSpritesPath.at(locator.scalingFactor));
auto imagePathData = ImagePath::builtin(imagePathString).addPrefix(scaledDataPath.at(locator.scalingFactor)); auto imagePathData = ImagePath::builtin(imagePathString).addPrefix(scaledDataPath.at(locator.scalingFactor));
if(CResourceHandler::get()->existsResource(imagePathSprites) && settings["video"]["useHdTextures"].Bool()) if(CResourceHandler::get()->existsResource(imagePathSprites) && (settings["video"]["useHdTextures"].Bool() || locator.scalingFactor == 1))
return std::make_shared<SDLImageShared>(imagePathSprites); return std::make_shared<SDLImageShared>(imagePathSprites);
if(CResourceHandler::get()->existsResource(imagePathData) && settings["video"]["useHdTextures"].Bool()) if(CResourceHandler::get()->existsResource(imagePathData) && (settings["video"]["useHdTextures"].Bool() || locator.scalingFactor == 1))
return std::make_shared<SDLImageShared>(imagePathData); return std::make_shared<SDLImageShared>(imagePathData);
if(CResourceHandler::get()->existsResource(imagePath)) if(CResourceHandler::get()->existsResource(imagePath))