Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4048e7

Browse filesBrowse files
committed
Fix y calculation
1 parent ce5fb1f commit e4048e7
Copy full SHA for e4048e7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/_backend_agg.h

Copy file name to clipboardExpand all lines: src/_backend_agg.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.