[Scummvm-git-logs] scummvm master -> 782e31d78c1bbcc75a52444362ef5110233bb898

sev- sev at scummvm.org
Sun Sep 11 00:30:10 CEST 2016


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:
782e31d78c FULLPIPE: Fix reversed statics initialization


Commit: 782e31d78c1bbcc75a52444362ef5110233bb898
    https://github.com/scummvm/scummvm/commit/782e31d78c1bbcc75a52444362ef5110233bb898
Author: Retro-Junk (bambarbee at yandex.ru)
Date: 2016-09-11T00:29:34+02:00

Commit Message:
FULLPIPE: Fix reversed statics initialization

Changed paths:
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 83a0de0..0539edd 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1480,8 +1480,13 @@ bool Statics::load(MfcArchive &file) {
 void Statics::init() {
 	Picture::init();
 
-	if (_staticsId & 0x4000)
-		_bitmap->reverseImage();
+	if (_staticsId & 0x4000) {
+		Bitmap *reversed = _bitmap->reverseImage();
+		freePixelData();
+		// TODO: properly dispose old _bitmap
+		_bitmap = reversed;
+		// _data = ... // useless?
+	}
 }
 
 Common::Point *Statics::getSomeXY(Common::Point &p) {





More information about the Scummvm-git-logs mailing list