1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

dont cut overlays & shadows

This commit is contained in:
Laserlicht
2025-07-12 00:45:49 +02:00
parent 3c3eebb9d4
commit 2f00524439
4 changed files with 11 additions and 7 deletions

View File

@@ -974,7 +974,7 @@ SDL_Surface * CSDL_Ext::drawShadow(SDL_Surface * source, bool doSheer)
assert(destSurface->format->format == SDL_PIXELFORMAT_ARGB8888);
double shearX = doSheer ? 0.5 : 0.0;
double scaleY = 0.25;
double scaleY = doSheer ? 0.5 : 0.25;
int lowestSource = getLowestNonTransparentY(sourceSurface);
int lowestTransformed = lowestSource * scaleY;