[Scummvm-git-logs] scummvm master -> 62923730255efcdf96bebd24298fb72f8591c53d

bluegr noreply at scummvm.org
Mon Sep 21 22:06:06 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:
6292373025 CHAMBER: Take the Hercules blit path only for Hercules


Commit: 62923730255efcdf96bebd24298fb72f8591c53d
    https://github.com/scummvm/scummvm/commit/62923730255efcdf96bebd24298fb72f8591c53d
Author: Tristyn Russelo (tristynrusselo at gmail.com)
Date: 2026-09-22T01:06:02+03:00

Commit Message:
CHAMBER: Take the Hercules blit path only for Hercules

The path keyed on _renderMode, but its offsets are only valid when
init() took the Hercules branch, which _videoMode drives.

Assisted-by: Claude:claude-opus-5

Changed paths:
    engines/chamber/cga.cpp


diff --git a/engines/chamber/cga.cpp b/engines/chamber/cga.cpp
index 7f0059eabdc..54b6339bc86 100644
--- a/engines/chamber/cga.cpp
+++ b/engines/chamber/cga.cpp
@@ -172,7 +172,7 @@ void CGARenderer::blitToScreen(int16 dx, int16 dy, int16 w, int16 h) {
 	if (!mainSurface) {
 		mainSurface = new Graphics::Surface();
 	}
-	if (g_vm->_renderMode == Common::kRenderCGA) {
+	if (g_vm->_renderMode != Common::kRenderHercG && g_vm->_renderMode != Common::kRenderHercA) {
 		if (mainSurface->w != g_vm->_screenW) {
 			mainSurface->free();
 			mainSurface->create(g_vm->_screenW, g_vm->_screenH, Graphics::PixelFormat::createFormatCLUT8());




More information about the Scummvm-git-logs mailing list