aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/font.cpp
diff options
context:
space:
mode:
authorKamil Zbróg2013-10-24 20:31:08 +0100
committerKamil Zbróg2013-10-24 20:31:08 +0100
commit5357724657bff809b10b1f2bfe8547d1b53d6dcb (patch)
tree30b80321182fea4cc375c8734402b84a34dd0e1b /engines/prince/font.cpp
parentaccb9e10e8ee0c607c9fd2ec048af34b5058336f (diff)
downloadscummvm-rg350-5357724657bff809b10b1f2bfe8547d1b53d6dcb.tar.gz
scummvm-rg350-5357724657bff809b10b1f2bfe8547d1b53d6dcb.tar.bz2
scummvm-rg350-5357724657bff809b10b1f2bfe8547d1b53d6dcb.zip
PRINCE: code cleanup
Diffstat (limited to 'engines/prince/font.cpp')
-rw-r--r--engines/prince/font.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/prince/font.cpp b/engines/prince/font.cpp
index e72d73e61a..8c72f1b912 100644
--- a/engines/prince/font.cpp
+++ b/engines/prince/font.cpp
@@ -71,15 +71,15 @@ int Font::getCharWidth(byte chr) const {
}
void Font::drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 color) const {
- const ChrData chrData = getChrData(chr);
- const byte *src = chrData._pixels;
- byte *target = (byte *)dst->getBasePtr(x, y);
-
- for (int i = 0; i < chrData._height; i++) {
- memcpy(target, src, chrData._width);
- src += chrData._width;
- target += dst->pitch;
- }
+ const ChrData chrData = getChrData(chr);
+ const byte *src = chrData._pixels;
+ byte *target = (byte *)dst->getBasePtr(x, y);
+
+ for (int i = 0; i < chrData._height; i++) {
+ memcpy(target, src, chrData._width);
+ src += chrData._width;
+ target += dst->pitch;
+ }
}
}