[Scummvm-cvs-logs] scummvm master -> b580d2d1d019d117544cd2a618f0823f80dcfbb9

Strangerke Strangerke at scummvm.org
Tue Dec 29 12:53:22 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:
b580d2d1d0 LAB: Simplify code in doCloseUp


Commit: b580d2d1d019d117544cd2a618f0823f80dcfbb9
    https://github.com/scummvm/scummvm/commit/b580d2d1d019d117544cd2a618f0823f80dcfbb9
Author: Strangerke (strangerke at scummvm.org)
Date: 2015-12-29T12:47:37+01:00

Commit Message:
LAB: Simplify code in doCloseUp

Changed paths:
    engines/lab/engine.cpp



diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index ca6e510..42587eb 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -185,16 +185,10 @@ bool LabEngine::doCloseUp(const CloseData *closePtr) {
 	Common::Rect textRect;
 
 	if (getPlatform() != Common::kPlatformWindows) {
-		textRect.left = 0;
-		textRect.right = 319;
-		textRect.top = 0;
-		textRect.bottom = 165;
+		textRect = Common::Rect(0, 0, 319, 165);
 		luteRight = 124;
 	} else {
-		textRect.left = 2;
-		textRect.right = 317;
-		textRect.top = 2;
-		textRect.bottom = 165;
+		textRect = Common::Rect(2, 2, 317, 165);
 		luteRight = 128;
 	}
 






More information about the Scummvm-git-logs mailing list