mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 17:52:43 +03:00
Fix template blit Y position by adjusting the pointer to the template
This commit is contained in:
parent
003344023b
commit
509053cae7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user