aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-01-09 08:53:34 +0000
committerYAMAMOTO Mitsuharu2007-01-09 08:53:34 +0000
commitae8279db7859bc90a2ecca073b50918dac52d159 (patch)
treeeea07beed193d0f96449588ed926f9d6bb4d99e3 /src
parentd277f1f71e7377a1265e7853d06d9d0a249870b7 (diff)
downloademacs-ae8279db7859bc90a2ecca073b50918dac52d159.tar.gz
emacs-ae8279db7859bc90a2ecca073b50918dac52d159.zip
(XDrawLine) [MAC_OS]: Remove macro.
(XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise. (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of XCreateGC_pixmap.
Diffstat (limited to 'src')
-rw-r--r--src/image.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c
index f4616b626a6..e67096b48b3 100644
--- a/src/image.c
+++ b/src/image.c
@@ -122,8 +122,6 @@ typedef struct mac_bitmap_record Bitmap_Record;
122#define FRAME_X_VISUAL(f) FRAME_X_DISPLAY_INFO (f)->visual 122#define FRAME_X_VISUAL(f) FRAME_X_DISPLAY_INFO (f)->visual
123#define x_defined_color mac_defined_color 123#define x_defined_color mac_defined_color
124#define DefaultDepthOfScreen(screen) (one_mac_display_info.n_planes) 124#define DefaultDepthOfScreen(screen) (one_mac_display_info.n_planes)
125#define XDrawLine(display, w, gc, x1, y1, x2, y2) \
126 mac_draw_line_to_pixmap(display, w, gc, x1, y1, x2, y2)
127 125
128#endif /* MAC_OS */ 126#endif /* MAC_OS */
129 127
@@ -5251,14 +5249,12 @@ x_disable_image (f, img)
5251 GC gc; 5249 GC gc;
5252 5250
5253#ifdef MAC_OS 5251#ifdef MAC_OS
5254#define XCreateGC_pixmap(dpy, pixmap) XCreateGC (dpy, NULL, 0, NULL)
5255#define MaskForeground(f) PIX_MASK_DRAW 5252#define MaskForeground(f) PIX_MASK_DRAW
5256#else 5253#else
5257#define XCreateGC_pixmap(dpy, pixmap) XCreateGC (dpy, pixmap, 0, NULL)
5258#define MaskForeground(f) WHITE_PIX_DEFAULT (f) 5254#define MaskForeground(f) WHITE_PIX_DEFAULT (f)
5259#endif 5255#endif
5260 5256
5261 gc = XCreateGC_pixmap (dpy, img->pixmap); 5257 gc = XCreateGC (dpy, img->pixmap, 0, NULL);
5262 XSetForeground (dpy, gc, BLACK_PIX_DEFAULT (f)); 5258 XSetForeground (dpy, gc, BLACK_PIX_DEFAULT (f));
5263 XDrawLine (dpy, img->pixmap, gc, 0, 0, 5259 XDrawLine (dpy, img->pixmap, gc, 0, 0,
5264 img->width - 1, img->height - 1); 5260 img->width - 1, img->height - 1);
@@ -5268,7 +5264,7 @@ x_disable_image (f, img)
5268 5264
5269 if (img->mask) 5265 if (img->mask)
5270 { 5266 {
5271 gc = XCreateGC_pixmap (dpy, img->mask); 5267 gc = XCreateGC (dpy, img->mask, 0, NULL);
5272 XSetForeground (dpy, gc, MaskForeground (f)); 5268 XSetForeground (dpy, gc, MaskForeground (f));
5273 XDrawLine (dpy, img->mask, gc, 0, 0, 5269 XDrawLine (dpy, img->mask, gc, 0, 0,
5274 img->width - 1, img->height - 1); 5270 img->width - 1, img->height - 1);