[Scummvm-git-logs] scummvm master -> 07d2c38d7efd58e3cc1756fd04dceb48f369cf08

bluegr bluegr at gmail.com
Mon Apr 26 16:19:04 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:
07d2c38d7e GRAPHICS: Fix SVG rendering on big endian


Commit: 07d2c38d7efd58e3cc1756fd04dceb48f369cf08
    https://github.com/scummvm/scummvm/commit/07d2c38d7efd58e3cc1756fd04dceb48f369cf08
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2021-04-26T19:18:59+03:00

Commit Message:
GRAPHICS: Fix SVG rendering on big endian

Changed paths:
    graphics/svg.cpp


diff --git a/graphics/svg.cpp b/graphics/svg.cpp
index c235b9ec34..32363117a4 100644
--- a/graphics/svg.cpp
+++ b/graphics/svg.cpp
@@ -53,7 +53,11 @@ SVGBitmap::SVGBitmap(Common::SeekableReadStream *in) {
 	_cache = NULL;
 	_render = NULL;
 
+#ifdef SCUMM_BIG_ENDIAN
+	_pixelformat = new Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0);
+#else
 	_pixelformat = new Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24);
+#endif
 }
 
 SVGBitmap::~SVGBitmap() {




More information about the Scummvm-git-logs mailing list