Commit 0fca290d authored by Alan Third's avatar Alan Third
Browse files

Invert y coord of NS image files (bug#7847)

* src/nsterm.m (ns_dumpglyphs_image): Invert y co-ordinate of the image
when compositing.
parent 68f4b529
......@@ -3478,7 +3478,8 @@ Function modeled after x_draw_glyph_string_box ().
{
#ifdef NS_IMPL_COCOA
NSRect dr = NSMakeRect (x, y, s->slice.width, s->slice.height);
NSRect ir = NSMakeRect (s->slice.x, s->slice.y,
NSRect ir = NSMakeRect (s->slice.x,
s->img->height - s->slice.y - s->slice.height,
s->slice.width, s->slice.height);
[img drawInRect: dr
fromRect: ir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment