From 003344023b0500b490025d79ae84c75ebb33e038 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 29 Jan 2015 00:13:48 +0000 Subject: Blit text to screen correctly on OS3 --- amiga/font.c | 11 +++++------ 1 file 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 } -- cgit v1.2.3