[Scummvm-git-logs] scummvm master -> c2b5da733812a956fa7001982e434ab9a22cf4ad

ccawley2011 noreply at scummvm.org
Tue Jun 17 21:56:52 UTC 2025


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:
c2b5da7338 IMAGE: Fix pixel format in dithering codec


Commit: c2b5da733812a956fa7001982e434ab9a22cf4ad
    https://github.com/scummvm/scummvm/commit/c2b5da733812a956fa7001982e434ab9a22cf4ad
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-06-17T22:56:50+01:00

Commit Message:
IMAGE: Fix pixel format in dithering codec

Changed paths:
    image/codecs/dither.cpp


diff --git a/image/codecs/dither.cpp b/image/codecs/dither.cpp
index f8ddda46dd8..afb87504c1d 100644
--- a/image/codecs/dither.cpp
+++ b/image/codecs/dither.cpp
@@ -137,7 +137,7 @@ const Graphics::Surface *DitherCodec::decodeFrame(Common::SeekableReadStream &st
 	else if (frame->format == Graphics::PixelFormat(2, 5, 5, 4, 0, 9, 4, 0, 0))
 		ditherQuickTimeFrame<uint16>(*frame, *_ditherFrame, _ditherTable, readQT_RGB554);
 	else if (frame->format == Graphics::PixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0) ||
-	         frame->format == Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 1))
+	         frame->format == Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15))
 		ditherQuickTimeFrame<uint16>(*frame, *_ditherFrame, _ditherTable, readQT_RGB555);
 	else if (frame->format.bytesPerPixel == 2)
 		ditherQuickTimeFrame<uint16>(*frame, *_ditherFrame, _ditherTable, readQT_RGB);




More information about the Scummvm-git-logs mailing list