diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-29 00:17:34 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-29 00:17:34 +0000 |
commit | 509053cae7c33f63af72d690ad43d3a39a4c40f9 (patch) | |
tree | 1e897151daf70e142d09bd332c45d5938b2df519 /amiga/font.c | |
parent | 003344023b0500b490025d79ae84c75ebb33e038 (diff) | |
download | netsurf-509053cae7c33f63af72d690ad43d3a39a4c40f9.tar.gz netsurf-509053cae7c33f63af72d690ad43d3a39a4c40f9.tar.bz2 |
Fix template blit Y position by adjusting the pointer to the template
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/font.c b/amiga/font.c index 0823034b4..8a47b4529 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -633,7 +633,8 @@ int32 ami_font_plot_glyph(struct OutlineFont *ofont, struct RastPort *rp, BLITA_SrcBytesPerRow, glyph->glm_BMModulo, TAG_DONE); #else - BltTemplate(glyphbm, glyph->glm_BlackLeft, glyph->glm_BMModulo, rp, + BltTemplate(glyphbm + (glyph->glm_BMModulo * glyph->glm_BlackTop), + 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); |