mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 15:30:29 -08:00
Invert y coord of NS image files (bug#7847)
* src/nsterm.m (ns_dumpglyphs_image): Invert y co-ordinate of the image when compositing.
This commit is contained in:
parent
68f4b52927
commit
0fca290ddf
1 changed files with 2 additions and 1 deletions
|
|
@ -3478,7 +3478,8 @@ ns_dumpglyphs_image (struct glyph_string *s, NSRect r)
|
|||
{
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue