aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/ttf.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:35:31 +0200
committerJohannes Schickel2013-08-03 04:02:49 +0200
commit5111746911958bd35422e9614b0961a6b911ea06 (patch)
tree0b166db3132da17f7a49a40b8914aa1b94e03c05 /graphics/fonts/ttf.cpp
parentf03dc05847a77661c2978619099ab18c82bb94f7 (diff)
downloadscummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.gz
scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.tar.bz2
scummvm-rg350-5111746911958bd35422e9614b0961a6b911ea06.zip
GRAPHICS: Take advantage of Surface::getPixels.
Diffstat (limited to 'graphics/fonts/ttf.cpp')
-rw-r--r--graphics/fonts/ttf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 2b1dca1eae..b9e9610d77 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -322,7 +322,7 @@ void TTFFont::drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const
int w = glyph.image.w;
int h = glyph.image.h;
- const uint8 *srcPos = (const uint8 *)glyph.image.getBasePtr(0, 0);
+ const uint8 *srcPos = (const uint8 *)glyph.image.getPixels();
// Make sure we are not drawing outside the screen bounds
if (x < 0) {
@@ -422,7 +422,7 @@ bool TTFFont::cacheGlyph(Glyph &glyph, FT_UInt &slot, uint chr) {
srcPitch = -srcPitch;
}
- uint8 *dst = (uint8 *)glyph.image.getBasePtr(0, 0);
+ uint8 *dst = (uint8 *)glyph.image.getPixels();
memset(dst, 0, glyph.image.h * glyph.image.pitch);
switch (bitmap.pixel_mode) {