[Scummvm-git-logs] scummvm master -> 84a8cc128fee19f0e4707d2cd16bb2c2e23cd946

bluegr noreply at scummvm.org
Mon Jun 22 01:25:41 UTC 2026


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

Summary:
84a8cc128f GUI: Fix bitmap rendering with RGB332 overlays


Commit: 84a8cc128fee19f0e4707d2cd16bb2c2e23cd946
    https://github.com/scummvm/scummvm/commit/84a8cc128fee19f0e4707d2cd16bb2c2e23cd946
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2026-06-22T04:25:38+03:00

Commit Message:
GUI: Fix bitmap rendering with RGB332 overlays

Changed paths:
    graphics/VectorRendererSpec.cpp


diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index bbdcbe585fe..ec668830090 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -803,7 +803,12 @@ blitManagedSurface(const Graphics::ManagedSurface *source, const Common::Point &
 		np = p;
 	}
 
-	_activeSurface->simpleBlitFrom(*source, drawRect, np, Graphics::FLIP_NONE, alphaType != Graphics::ALPHA_OPAQUE);
+	if (_activeSurface->format.bytesPerPixel == 1 && alphaType != Graphics::ALPHA_OPAQUE) {
+		// simpleBlitFrom doesn't currently support alpha blending to an RGB332 surface.
+		_activeSurface->transBlitFrom(*source, drawRect, np);
+	} else {
+		_activeSurface->simpleBlitFrom(*source, drawRect, np, Graphics::FLIP_NONE, alphaType != Graphics::ALPHA_OPAQUE);
+	}
 }
 
 template<typename PixelType>




More information about the Scummvm-git-logs mailing list