Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c91eba4

Browse files
committed
Fix
1 parent b1d42a0 commit c91eba4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_backend_agg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ inline void RendererAgg::draw_text_image(GCAgg &gc, ImageArray &image, int x, in
789789
}
790790

791791
for (int yi = text.y1; yi < text.y2; ++yi) {
792-
blend_solid_hspan(x1, yi, (x2 - x1), gc.color, &image(yi - (y - image.dim(0)), x1 - x));
792+
blend_solid_hspan(text.x1, yi, (text.x2 - text.x1), gc.color,
793+
&image(yi - (y - image.dim(0)), text.x1 - x));
793794
}
794795
}
795796
}

0 commit comments

Comments
 (0)