Skip to content

Commit e4048e7

Browse files
committed
Fix y calculation
1 parent ce5fb1f commit e4048e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_backend_agg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ inline void RendererAgg::draw_text_image(GCAgg &gc, ImageArray &image, int x, in
791791
if (text.x2 > text.x1) {
792792
for (int yi = text.y1; yi < text.y2; ++yi) {
793793
pixFmt.blend_solid_hspan(text.x1, yi, (text.x2 - text.x1), gc.color,
794-
&image((yi - y) - image.dim(0), text.x1 - x));
794+
&image(yi - (y - image.dim(0)), text.x1 - x));
795795
}
796796
}
797797
}

0 commit comments

Comments
 (0)