1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

code review

This commit is contained in:
Laserlicht
2025-07-17 22:47:14 +02:00
parent af2f039ed4
commit e799db4546
3 changed files with 28 additions and 37 deletions

View File

@@ -321,6 +321,8 @@ std::shared_ptr<SDLImageShared> RenderHandler::loadScaledImage(const ImageLocato
if(img)
{
// TODO: Performance improvement - Run algorithm on optimized ("trimmed") images
// Not implemented yet because different frame image sizes seems to cause wobbeling shadow -> needs a way around this
if(isShadow && generateShadow)
img = img->drawShadow((*locator.generateShadow) == SharedImageLocator::ShadowMode::SHADOW_SHEAR);
if(isOverlay && generateOverlay && (*locator.generateOverlay) == SharedImageLocator::OverlayMode::OVERLAY_OUTLINE)