aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-04 07:54:02 -0400
committerPaul Gilbert2016-04-04 07:54:02 -0400
commit3acf1116cd7eff2f98538f8457f724ac25b28df1 (patch)
tree755cf8a6a26da8068442c6cd32d937251aacf0dd /engines
parent56b29987443075faba0495d84eeaf42b443d577f (diff)
downloadscummvm-rg350-3acf1116cd7eff2f98538f8457f724ac25b28df1.tar.gz
scummvm-rg350-3acf1116cd7eff2f98538f8457f724ac25b28df1.tar.bz2
scummvm-rg350-3acf1116cd7eff2f98538f8457f724ac25b28df1.zip
TITANIC: Implemented STFont::copyRect
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/support/font.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/support/font.cpp b/engines/titanic/support/font.cpp
index 32652588c0..55865e792c 100644
--- a/engines/titanic/support/font.cpp
+++ b/engines/titanic/support/font.cpp
@@ -148,6 +148,14 @@ void STFont::copyRect(CVideoSurface *surface, const Common::Point &pt, Rect &rec
uint16 *lineP = surface->getBasePtr(pt.x, pt.y);
uint16 color = getColor();
+ for (int yp = rect.top; yp < rect.bottom; ++yp, lineP += surface->getPitch()) {
+ uint16 *destP = lineP;
+ for (int xp = rect.left; xp < rect.right; ++xp, ++destP) {
+ const byte *srcP = _dataPtr + yp * _dataWidth + xp;
+ //surface->changePixel(destP, color, *srcP >> 3, 1);
+ }
+ }
+
surface->unlock();
}
}