aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/gob.cpp4
-rw-r--r--engines/gob/inter_v2.cpp4
-rw-r--r--engines/gob/inter_v5.cpp4
-rw-r--r--engines/gob/video.cpp6
-rw-r--r--engines/gob/video.h2
5 files changed, 10 insertions, 10 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp
index 605f1ed5b9..c9eaec9ef0 100644
--- a/engines/gob/gob.cpp
+++ b/engines/gob/gob.cpp
@@ -260,7 +260,7 @@ void GobEngine::setTrueColor(bool trueColor) {
_features = (_features & ~kFeaturesTrueColor) | (trueColor ? kFeaturesTrueColor : 0);
- _video->setSize(is640x480());
+ _video->setSize();
_pixelFormat = g_system->getScreenFormat();
@@ -708,7 +708,7 @@ Common::Error GobEngine::initGraphics() {
_mode = 0x14;
}
- _video->setSize(is640x480());
+ _video->setSize();
_pixelFormat = g_system->getScreenFormat();
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index 3928985dcd..1e8eddeef0 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -797,7 +797,7 @@ void Inter_v2::o2_initScreen() {
height = _vm->_height = 400;
_vm->_global->_colorCount = 16;
- _vm->_video->setSize(true);
+ _vm->_video->setSize();
} else if (_vm->_global->_videoMode == 0x10) {
@@ -810,7 +810,7 @@ void Inter_v2::o2_initScreen() {
_vm->_height = 200;
_vm->_global->_colorCount = 256;
- _vm->_video->setSize(false);
+ _vm->_video->setSize();
}
}
diff --git a/engines/gob/inter_v5.cpp b/engines/gob/inter_v5.cpp
index 50176e0a27..91342cf326 100644
--- a/engines/gob/inter_v5.cpp
+++ b/engines/gob/inter_v5.cpp
@@ -140,13 +140,13 @@ void Inter_v5::o5_initScreen() {
_vm->_width = 320;
_vm->_height = 200;
- _vm->_video->setSize(false);
+ _vm->_video->setSize();
} else if (_vm->_global->_videoMode == 0x13) {
width = _vm->_width = 640;
height = _vm->_height = 480;
- _vm->_video->setSize(true);
+ _vm->_video->setSize();
}
_vm->_global->_fakeVideoMode = videoMode;
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp
index 1dc51d994c..6480fe89f0 100644
--- a/engines/gob/video.cpp
+++ b/engines/gob/video.cpp
@@ -237,11 +237,11 @@ void Video::clearScreen() {
g_system->fillScreen(0);
}
-void Video::setSize(bool defaultTo1XScaler) {
+void Video::setSize() {
if (_vm->isTrueColor())
- initGraphics(_vm->_width, _vm->_height, defaultTo1XScaler, 0);
+ initGraphics(_vm->_width, _vm->_height, nullptr);
else
- initGraphics(_vm->_width, _vm->_height, defaultTo1XScaler);
+ initGraphics(_vm->_width, _vm->_height);
}
void Video::retrace(bool mouse) {
diff --git a/engines/gob/video.h b/engines/gob/video.h
index 2c547baca0..57ec4fb6d4 100644
--- a/engines/gob/video.h
+++ b/engines/gob/video.h
@@ -112,7 +112,7 @@ public:
void initPrimary(int16 mode);
SurfacePtr initSurfDesc(int16 width, int16 height, int16 flags = 0);
- void setSize(bool defaultTo1XScaler);
+ void setSize();
void clearScreen();
void retrace(bool mouse = true);