aboutsummaryrefslogtreecommitdiff
path: root/graphics/sjis.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-19 01:37:04 +0000
committerMax Horn2010-11-19 01:37:04 +0000
commita0df86955f80dedaa00e6f7593e96b90b697a83a (patch)
tree546f48f5edc6248ce3f2af65cf6a2b4727b7dd40 /graphics/sjis.cpp
parent785590e504ff2c275ee2a4101ecd4827666230b4 (diff)
downloadscummvm-rg350-a0df86955f80dedaa00e6f7593e96b90b697a83a.tar.gz
scummvm-rg350-a0df86955f80dedaa00e6f7593e96b90b697a83a.tar.bz2
scummvm-rg350-a0df86955f80dedaa00e6f7593e96b90b697a83a.zip
ALL: Push down deps on stream.h from .h to .cpp files
svn-id: r54358
Diffstat (limited to 'graphics/sjis.cpp')
-rw-r--r--graphics/sjis.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp
index 06712a9226..4b9f2fac57 100644
--- a/graphics/sjis.cpp
+++ b/graphics/sjis.cpp
@@ -29,6 +29,9 @@
#include "common/debug.h"
#include "common/archive.h"
#include "common/endian.h"
+#include "common/stream.h"
+
+#include "graphics/surface.h"
namespace Graphics {
@@ -52,6 +55,10 @@ FontSJIS *FontSJIS::createFont(const Common::Platform platform) {
return 0;
}
+void FontSJIS::drawChar(Graphics::Surface &dst, uint16 ch, int x, int y, uint32 c1, uint32 c2) const {
+ drawChar(dst.getBasePtr(x, y), ch, dst.pitch, dst.bytesPerPixel, c1, c2, dst.w - x, dst.h - y);
+}
+
template<typename Color>
void FontSJISBase::blitCharacter(const uint8 *glyph, const int w, const int h, uint8 *dst, int pitch, Color c) const {
for (int y = 0; y < h; ++y) {