[Scummvm-cvs-logs] scummvm master -> 887add323b641c5f95c873a176645a5783d764cd

Strangerke Strangerke at scummvm.org
Thu Dec 24 01:49:58 CET 2015


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:
887add323b LAB: Fix unsafe use of boolean


Commit: 887add323b641c5f95c873a176645a5783d764cd
    https://github.com/scummvm/scummvm/commit/887add323b641c5f95c873a176645a5783d764cd
Author: Strangerke (strangerke at scummvm.org)
Date: 2015-12-24T01:44:22+01:00

Commit Message:
LAB: Fix unsafe use of boolean

Changed paths:
    engines/lab/intro.cpp



diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp
index 9c047ca..b73de25 100644
--- a/engines/lab/intro.cpp
+++ b/engines/lab/intro.cpp
@@ -96,7 +96,7 @@ void Intro::doPictText(const Common::String filename, bool isScreen) {
 				_vm->_graphics->setPen(7);
 				_vm->_graphics->rectFillScaled(10, 10, 310, 190);
 
-				charDrawn = _vm->_graphics->flowText(_font, (!_vm->_isHiRes) * -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), (char *)curText);
+				charDrawn = _vm->_graphics->flowText(_font, _vm->_isHiRes ? 0 : -1, 5, 7, false, false, true, true, _vm->_utils->vgaRectScale(14, 11, 306, 189), (char *)curText);
 				_vm->_graphics->fade(true);
 			} else
 				charDrawn = _vm->_graphics->longDrawMessage(Common::String((char *)curText), false);






More information about the Scummvm-git-logs mailing list