mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
Fix transition on software rendere
This commit is contained in:
parent
d95946abfe
commit
2f1935d826
@ -800,9 +800,17 @@ void Direct3DRMSoftwareRenderer::Draw2DImage(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isUpscaling = centeredRect.w > srcRect.w || centeredRect.h > srcRect.h;
|
||||||
|
|
||||||
SDL_Surface* surface = m_textures[textureId].cached;
|
SDL_Surface* surface = m_textures[textureId].cached;
|
||||||
SDL_UnlockSurface(surface);
|
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);
|
SDL_LockSurface(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user