Fix template blit Y position by adjusting the pointer to the template

This commit is contained in:
Chris Young 2015-01-29 00:17:34 +00:00
parent 003344023b
commit 509053cae7
1 changed files with 2 additions and 1 deletions

View File

@ -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);