aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2016-09-27 03:27:01 +0300
committerFilippos Karapetis2016-10-03 00:34:59 +0300
commit263fdb357bc7fd01283c016f34a24f45ac13257e (patch)
tree9800e31187f3010647bee8aee6cb0ca56e5e63e9 /engines
parent832b97c1d5f3bf8f7c1ae451beea1e6ac1b33834 (diff)
downloadscummvm-rg350-263fdb357bc7fd01283c016f34a24f45ac13257e.tar.gz
scummvm-rg350-263fdb357bc7fd01283c016f34a24f45ac13257e.tar.bz2
scummvm-rg350-263fdb357bc7fd01283c016f34a24f45ac13257e.zip
CHEWY: Some cleanup, and remove a seemingly unused resource
Diffstat (limited to 'engines')
-rw-r--r--engines/chewy/resource.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/chewy/resource.cpp b/engines/chewy/resource.cpp
index 368f589cc1..365bcbb5f8 100644
--- a/engines/chewy/resource.cpp
+++ b/engines/chewy/resource.cpp
@@ -40,7 +40,6 @@ namespace Chewy {
// misc/exit.eib
// misc/inventar.iib
// misc/inventar.sib
-// room/csp.int
// room/test.rdi
// txt/*.tap
// txt/diah.adh
@@ -375,8 +374,8 @@ Font::~Font() {
line->create(text.size() * _width, _height, ::Graphics::PixelFormat::createFormatCLUT8());
for (uint i = 0; i < text.size(); i++) {
- int c = text[i];
- line->copyRectToSurface(_fontSurface, i * _width, 0, Common::Rect((c - _first) * _width, 0, (c - _first) * _width + _width, _height));
+ uint x = (text[i] - _first) * _width;
+ line->copyRectToSurface(_fontSurface, i * _width, 0, Common::Rect(x, 0, x + _width, _height));
}
return line;