[Scummvm-git-logs] scummvm master -> 382d4a6cd7cce35f725a5e934cad0b8d1e6d8db2

sev- sev at scummvm.org
Sun Apr 11 21:47:44 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
382d4a6cd7 GRAPHICS: GUI: Do not use transparency when restoring background


Commit: 382d4a6cd7cce35f725a5e934cad0b8d1e6d8db2
    https://github.com/scummvm/scummvm/commit/382d4a6cd7cce35f725a5e934cad0b8d1e6d8db2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-04-11T23:47:24+02:00

Commit Message:
GRAPHICS: GUI: Do not use transparency when restoring background

Changed paths:
    graphics/VectorRendererSpec.cpp


diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index ffc262ed03..0f99ecc9a9 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -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>




More information about the Scummvm-git-logs mailing list