aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorColin Snover2017-10-01 00:56:01 -0500
committerColin Snover2017-10-07 12:30:29 -0500
commit432fd522d243f0779d2ebf99e8983dbb95cdd175 (patch)
tree85532da09a21511230923eb8a4acc7ac15bda966 /engines/gob
parentebe6c40a6abb2789349c2b6471eef24ac270ab94 (diff)
downloadscummvm-rg350-432fd522d243f0779d2ebf99e8983dbb95cdd175.tar.gz
scummvm-rg350-432fd522d243f0779d2ebf99e8983dbb95cdd175.tar.bz2
scummvm-rg350-432fd522d243f0779d2ebf99e8983dbb95cdd175.zip
ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons: * Engines universally set this flag to true for widths > 320, which made it redundant everywhere; * This flag functioned primarily as a "force 1x scaler" flag, since its behaviour was almost completely undocumented and users would need to figure out that they'd need an explicit non-default scaler set to get a scaler to operate at widths > 320; * (Most importantly) engines should not be in the business of deciding how the backend may choose to render its virtual screen. The choice of rendering behaviour belongs to the user, and the backend, in that order. A nearby future commit restores the default1x scaler behaviour in the SDL backend code for the moment, but in the future it is my hope that there will be a better configuration UI to allow users to specify how they want scaling to work for high resolutions.
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);