[Scummvm-git-logs] scummvm master -> 5b01e8a0cacc2fe284e0e010ab7d22193bbd59bc
bluegr
noreply at scummvm.org
Mon Jan 6 00:36:46 UTC 2025
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:
5b01e8a0ca GRAPHICS: Make use of simpleBlitFrom for PM5544 rendering
Commit: 5b01e8a0cacc2fe284e0e010ab7d22193bbd59bc
https://github.com/scummvm/scummvm/commit/5b01e8a0cacc2fe284e0e010ab7d22193bbd59bc
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-01-06T02:36:43+02:00
Commit Message:
GRAPHICS: Make use of simpleBlitFrom for PM5544 rendering
Changed paths:
graphics/pm5544.cpp
diff --git a/graphics/pm5544.cpp b/graphics/pm5544.cpp
index 01c8c2a4575..ddf0a51f57e 100644
--- a/graphics/pm5544.cpp
+++ b/graphics/pm5544.cpp
@@ -211,6 +211,7 @@ ManagedSurface *renderPM5544(int xres, int yres) {
int monoradius = monosize * rwidth + gapsize;
ManagedSurface *monoscope = new ManagedSurface(xres, yres, PixelFormat::createFormatCLUT8());
+ monoscope->setTransparentColor(TRANSCOLOR);
// two bottom rows
boxColor(monoscope, x1, y2 - rheight + gapsize / 2 + 1, x2, y2 + rheight + gapsize / 2 + 1, YELLOW);
@@ -269,7 +270,7 @@ ManagedSurface *renderPM5544(int xres, int yres) {
circleColorNoblend(monoscope, (xres - 1.0) / 2.0, (yres - 1.0) / 2.0, 3, WHITE, false);
circleColorNoblend(monoscope, (xres - 1.0) / 2.0, (yres - 1.0) / 2.0, monoradius, TRANSCOLOR, true);
- surface->transBlitFrom(*monoscope, TRANSCOLOR);
+ surface->simpleBlitFrom(*monoscope);
delete monoscope;
More information about the Scummvm-git-logs
mailing list