aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2015-12-29 12:47:37 +0100
committerStrangerke2015-12-29 12:47:37 +0100
commitb580d2d1d019d117544cd2a618f0823f80dcfbb9 (patch)
tree8ab80cd1fd532ba4b1f13578c9ca3b62d42661a0
parent583f86be27e2aa41bf4ce19c6c5fc9e42615e1bd (diff)
downloadscummvm-rg350-b580d2d1d019d117544cd2a618f0823f80dcfbb9.tar.gz
scummvm-rg350-b580d2d1d019d117544cd2a618f0823f80dcfbb9.tar.bz2
scummvm-rg350-b580d2d1d019d117544cd2a618f0823f80dcfbb9.zip
LAB: Simplify code in doCloseUp
-rw-r--r--engines/lab/engine.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index ca6e510ccc..42587eb7bb 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;
}