[Scummvm-git-logs] scummvm master -> 5ae0f924e8a01e50ea498c7a1ab7232a98226948
ccawley2011
noreply at scummvm.org
Wed Jul 1 14:48:07 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:
5ae0f924e8 GRAPHICS: Allow flipping with ManagedSurface::scale()
Commit: 5ae0f924e8a01e50ea498c7a1ab7232a98226948
https://github.com/scummvm/scummvm/commit/5ae0f924e8a01e50ea498c7a1ab7232a98226948
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2026-07-01T15:47:47+01:00
Commit Message:
GRAPHICS: Allow flipping with ManagedSurface::scale()
Changed paths:
graphics/managed_surface.cpp
graphics/managed_surface.h
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index 4a3f1e9a701..c22c36c3f98 100644
--- a/graphics/managed_surface.cpp
+++ b/graphics/managed_surface.cpp
@@ -306,15 +306,15 @@ void ManagedSurface::convertToInPlace(const PixelFormat &dstFormat) {
_innerSurface.convertToInPlace(dstFormat);
}
-Graphics::ManagedSurface *ManagedSurface::scale(int16 newWidth, int16 newHeight, bool filtering) const {
+Graphics::ManagedSurface *ManagedSurface::scale(int16 newWidth, int16 newHeight, bool filtering, byte flip) const {
Graphics::ManagedSurface *target = new Graphics::ManagedSurface();
target->create(newWidth, newHeight, format);
if (filtering) {
- scaleBlitBilinear((byte *)target->getPixels(), (const byte *)getPixels(), target->pitch, pitch, target->w, target->h, w, h, format);
+ scaleBlitBilinear((byte *)target->getPixels(), (const byte *)getPixels(), target->pitch, pitch, target->w, target->h, w, h, format, flip);
} else {
- scaleBlit((byte *)target->getPixels(), (const byte *)getPixels(), target->pitch, pitch, target->w, target->h, w, h, format);
+ scaleBlit((byte *)target->getPixels(), (const byte *)getPixels(), target->pitch, pitch, target->w, target->h, w, h, format, flip);
}
// Copy miscellaneous properties
diff --git a/graphics/managed_surface.h b/graphics/managed_surface.h
index 96e3c8a839c..b8636af1567 100644
--- a/graphics/managed_surface.h
+++ b/graphics/managed_surface.h
@@ -880,7 +880,7 @@ public:
* @param newHeight The resulting height.
* @param filtering Whether or not to use bilinear filtering.
*/
- ManagedSurface *scale(int16 newWidth, int16 newHeight, bool filtering = false) const;
+ ManagedSurface *scale(int16 newWidth, int16 newHeight, bool filtering = false, byte flip = 0) const;
/**
* @brief Rotoscale function; this returns a transformed version of this surface after rotation and
More information about the Scummvm-git-logs
mailing list