aboutsummaryrefslogtreecommitdiff
path: root/graphics/sjis.cpp
diff options
context:
space:
mode:
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) {