diff options
| author | Alan Third | 2016-09-10 23:46:09 +0100 |
|---|---|---|
| committer | Alan Third | 2016-09-10 23:49:02 +0100 |
| commit | 0fca290ddff9eabcd2e866b1361cd5b5ba868281 (patch) | |
| tree | bb7f7053d84835f7b030a161d89e8b36d7adc163 /src | |
| parent | 68f4b5292781bc331b040105c4079902b993835c (diff) | |
| download | emacs-0fca290ddff9eabcd2e866b1361cd5b5ba868281.tar.gz emacs-0fca290ddff9eabcd2e866b1361cd5b5ba868281.zip | |
Invert y coord of NS image files (bug#7847)
* src/nsterm.m (ns_dumpglyphs_image): Invert y co-ordinate of the image
when compositing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index ceda30bd46f..26977e47fbd 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -3478,7 +3478,8 @@ ns_dumpglyphs_image (struct glyph_string *s, NSRect r) | |||
| 3478 | { | 3478 | { |
| 3479 | #ifdef NS_IMPL_COCOA | 3479 | #ifdef NS_IMPL_COCOA |
| 3480 | NSRect dr = NSMakeRect (x, y, s->slice.width, s->slice.height); | 3480 | NSRect dr = NSMakeRect (x, y, s->slice.width, s->slice.height); |
| 3481 | NSRect ir = NSMakeRect (s->slice.x, s->slice.y, | 3481 | NSRect ir = NSMakeRect (s->slice.x, |
| 3482 | s->img->height - s->slice.y - s->slice.height, | ||
| 3482 | s->slice.width, s->slice.height); | 3483 | s->slice.width, s->slice.height); |
| 3483 | [img drawInRect: dr | 3484 | [img drawInRect: dr |
| 3484 | fromRect: ir | 3485 | fromRect: ir |