aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/graphics.cpp
diff options
context:
space:
mode:
authorStrangerke2013-08-16 19:23:29 +0200
committerStrangerke2013-08-16 19:23:29 +0200
commit9dd65e5ef3cf88f882e6a7d35bd50cb7a1de838c (patch)
tree01a57f34b0d27788c6e9244025779c592aa76d52 /engines/mortevielle/graphics.cpp
parent481aeb0b0b7b831a45092975f56efb68b3a6f119 (diff)
downloadscummvm-rg350-9dd65e5ef3cf88f882e6a7d35bd50cb7a1de838c.tar.gz
scummvm-rg350-9dd65e5ef3cf88f882e6a7d35bd50cb7a1de838c.tar.bz2
scummvm-rg350-9dd65e5ef3cf88f882e6a7d35bd50cb7a1de838c.zip
MORTEVIELLE: Put resolution scaler in a const, remove some dead code related to it
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r--engines/mortevielle/graphics.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp
index a15195f616..daf7926438 100644
--- a/engines/mortevielle/graphics.cpp
+++ b/engines/mortevielle/graphics.cpp
@@ -1015,11 +1015,6 @@ void ScreenSurface::writeCharacter(const Common::Point &pt, unsigned char ch, in
* simulate the original 640x400 surface, all Y values have to be doubled
*/
void ScreenSurface::drawBox(int x, int y, int dx, int dy, int col) {
- if (_vm->_resolutionScaler == 1) {
- x = (uint)x >> 1;
- dx = (uint)dx >> 1;
- }
-
Graphics::Surface destSurface = lockArea(Common::Rect(x, y * 2, x + dx, (y + dy) * 2));
destSurface.hLine(0, 0, dx, col);
@@ -1078,11 +1073,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) {
_vm->_mouse.hideMouse();
Common::Point pt = _textPos;
- int charWidth;
- if (_vm->_resolutionScaler == 2)
- charWidth = 6;
- else
- charWidth = 10;
+ int charWidth = 6;
int x = pt.x + charWidth * l.size();
int color = 0;
@@ -1118,7 +1109,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) {
* Gets the width in pixels of the specified string
*/
int ScreenSurface::getStringWidth(const Common::String &s) {
- int charWidth = (_vm->_resolutionScaler == 2) ? 6 : 10;
+ int charWidth = 6;
return s.size() * charWidth;
}