[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/Attic/macterm.c, v [EMACS_22_BASE]
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] Changes to emacs/src/Attic/macterm.c, v [EMACS_22_BASE] |
Date: |
Sat, 30 Aug 2008 04:54:57 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Branch: EMACS_22_BASE
Changes by: YAMAMOTO Mitsuharu <mituharu> 08/08/30 04:54:56
Index: macterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/Attic/macterm.c,v
retrieving revision 1.214.2.27
retrieving revision 1.214.2.28
diff -u -b -r1.214.2.27 -r1.214.2.28
--- macterm.c 20 Aug 2008 09:05:14 -0000 1.214.2.27
+++ macterm.c 30 Aug 2008 04:54:55 -0000 1.214.2.28
@@ -559,27 +559,25 @@
int dest_x, dest_y, overlay_p;
{
CGContextRef context;
- CGFloat port_height = FRAME_PIXEL_HEIGHT (f);
- CGRect dest_rect = mac_rect_make (f, dest_x, dest_y, width, height);
+ CGRect dest_rect, bounds;
context = mac_begin_cg_clip (f, gc);
+ dest_rect = mac_rect_make (f, dest_x, dest_y, width, height);
+ bounds = mac_rect_make (f, dest_x - src_x, dest_y - src_y,
+ CGImageGetWidth (image), CGImageGetHeight (image));
if (!overlay_p)
{
CG_SET_FILL_COLOR_WITH_GC_BACKGROUND (context, gc);
CGContextFillRect (context, dest_rect);
}
CGContextClipToRect (context, dest_rect);
+ CGContextTranslateCTM (context,
+ CGRectGetMinX (bounds), CGRectGetMaxY (bounds));
CGContextScaleCTM (context, 1, -1);
- CGContextTranslateCTM (context, 0, -port_height);
if (CGImageIsMask (image))
CG_SET_FILL_COLOR_WITH_GC_FOREGROUND (context, gc);
- CGContextDrawImage (context,
- mac_rect_make (f, dest_x - src_x,
- port_height - (dest_y - src_y
- + CGImageGetHeight (image)),
- CGImageGetWidth (image),
- CGImageGetHeight (image)),
- image);
+ bounds.origin = CGPointZero;
+ CGContextDrawImage (context, bounds, image);
mac_end_cg_clip (f);
}
- [Emacs-diffs] Changes to emacs/src/Attic/macterm.c, v [EMACS_22_BASE],
YAMAMOTO Mitsuharu <=