mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -04:00
Fix transition on software rendere (#543)
This commit is contained in:
parent
d95946abfe
commit
6df6ae407c
@ -800,9 +800,17 @@ void Direct3DRMSoftwareRenderer::Draw2DImage(
|
||||
return;
|
||||
}
|
||||
|
||||
bool isUpscaling = centeredRect.w > srcRect.w || centeredRect.h > srcRect.h;
|
||||
|
||||
SDL_Surface* surface = m_textures[textureId].cached;
|
||||
SDL_UnlockSurface(surface);
|
||||
SDL_BlitSurfaceScaled(surface, &srcRect, m_renderedImage, ¢eredRect, SDL_SCALEMODE_LINEAR);
|
||||
SDL_BlitSurfaceScaled(
|
||||
surface,
|
||||
&srcRect,
|
||||
m_renderedImage,
|
||||
¢eredRect,
|
||||
isUpscaling ? SDL_SCALEMODE_NEAREST : SDL_SCALEMODE_LINEAR
|
||||
);
|
||||
SDL_LockSurface(surface);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user