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

mduggan mgithub at guarana.org
Thu Jan 21 12:55:16 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:
ede70ce2eb ULTIMA8: Fix crash in inveter after graphics refactor


Commit: ede70ce2eb9fcd422ac1e0c25a3ada1094246d6c
    https://github.com/scummvm/scummvm/commit/ede70ce2eb9fcd422ac1e0c25a3ada1094246d6c
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2021-01-21T21:54:15+09:00

Commit Message:
ULTIMA8: Fix crash in inveter after graphics refactor

Changed paths:
    engines/ultima/ultima8/gumps/inverter_gump.cpp


diff --git a/engines/ultima/ultima8/gumps/inverter_gump.cpp b/engines/ultima/ultima8/gumps/inverter_gump.cpp
index e3ef172ffe..aefd8f7e96 100644
--- a/engines/ultima/ultima8/gumps/inverter_gump.cpp
+++ b/engines/ultima/ultima8/gumps/inverter_gump.cpp
@@ -96,7 +96,9 @@ void InverterGump::PaintChildren(RenderSurface *surf, int32 lerp_factor, bool sc
 		_buffer = RenderSurface::CreateSecondaryRenderSurface(width, height);
 	}
 
+	_buffer->BeginPainting();
 	DesktopGump::PaintChildren(_buffer, lerp_factor, scaled);
+	_buffer->EndPainting();
 
 	// now invert-blit _buffer to screen
 	int t = (state * height) / 0x10000;




More information about the Scummvm-git-logs mailing list