summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-29 00:13:48 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-29 00:13:48 +0000
commit003344023b0500b490025d79ae84c75ebb33e038 (patch)
tree35d742b0678b1b474b786b68afbda3e7b5470cc3 /amiga/font.c
parent9a6e339ab2aef1f47f072d49b6f3cc7cf7f3ed3e (diff)
downloadnetsurf-003344023b0500b490025d79ae84c75ebb33e038.tar.gz
netsurf-003344023b0500b490025d79ae84c75ebb33e038.tar.bz2
Blit text to screen correctly on OS3
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-xamiga/font.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/amiga/font.c b/amiga/font.c
index e985ab8be..0823034b4 100755
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -618,8 +618,7 @@ int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPort *rp,
glyphbm = glyph->glm_BitMap;
if(!glyphbm) return 0;
- if(rp)
- {
+ if(rp) {
#ifdef __amigaos4__
BltBitMapTags(BLITA_SrcX, glyph->glm_BlackLeft,
BLITA_SrcY, glyph->glm_BlackTop,
@@ -634,10 +633,10 @@ int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPort *rp,
BLITA_SrcBytesPerRow, glyph->glm_BMModulo,
TAG_DONE);
#else
-#warning OS3 needs this as a BltBitMapTemplate
- /* So we get some sort of text on screen */
- Move(rp, x, y);
- Text(rp, &char1, 1);
+ BltTemplate(glyphbm, glyph->glm_BlackLeft, glyph->glm_BMModulo, rp,
+ x - glyph->glm_X0 + glyph->glm_BlackLeft,
+ y - glyph->glm_Y0 + glyph->glm_BlackTop,
+ glyph->glm_BlackWidth, glyph->glm_BlackHeight);
#endif
}