emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0fca290: Invert y coord of NS image files (bug#7847


From: Alan Third
Subject: [Emacs-diffs] master 0fca290: Invert y coord of NS image files (bug#7847)
Date: Sat, 10 Sep 2016 22:54:10 +0000 (UTC)

branch: master
commit 0fca290ddff9eabcd2e866b1361cd5b5ba868281
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Invert y coord of NS image files (bug#7847)
    
    * src/nsterm.m (ns_dumpglyphs_image): Invert y co-ordinate of the image
    when compositing.
---
 src/nsterm.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index ceda30b..26977e4 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]