mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
GRAPHICS: GUI: Do not use transparency when restoring background
This commit is contained in:
parent
2a502ac754
commit
382d4a6cd7
@ -741,7 +741,20 @@ void VectorRendererSpec<PixelType>::
|
||||
blitSurface(const Graphics::ManagedSurface *source, const Common::Rect &r) {
|
||||
assert(source->w == _activeSurface->w && source->h == _activeSurface->h);
|
||||
|
||||
_activeSurface->blitFrom(*source, r, r);
|
||||
byte *dst_ptr = (byte *)_activeSurface->getBasePtr(r.left, r.top);
|
||||
const byte *src_ptr = (const byte *)source->getBasePtr(r.left, r.top);
|
||||
|
||||
const int dst_pitch = _activeSurface->pitch;
|
||||
const int src_pitch = source->pitch;
|
||||
|
||||
int h = r.height();
|
||||
const int w = r.width() * sizeof(PixelType);
|
||||
|
||||
while (h--) {
|
||||
memcpy(dst_ptr, src_ptr, w);
|
||||
dst_ptr += dst_pitch;
|
||||
src_ptr += src_pitch;
|
||||
}
|
||||
}
|
||||
|
||||
template<typename PixelType>
|
||||
|
Loading…
Reference in New Issue
Block a user