aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-03-11 12:03:12 +0000
committerEli Zaretskii2006-03-11 12:03:12 +0000
commit97b5ae784da87d61fac93904f11aed356d9215f5 (patch)
treef7e9743bc2c88b192b268d6c45cb9202d87c2b50
parent8cb56728dda0b94f3b93f039414f56b24d188c19 (diff)
downloademacs-97b5ae784da87d61fac93904f11aed356d9215f5.tar.gz
emacs-97b5ae784da87d61fac93904f11aed356d9215f5.zip
(mac_draw_rectangle): Don't add 1 to width and height.
(x_draw_glyph_string_foreground) (x_draw_composite_glyph_string_foreground) (x_draw_image_foreground): Don't subtract 1 from width and height arguments to mac_draw_rectangle. (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
-rw-r--r--src/ChangeLog11
-rw-r--r--src/macterm.c14
2 files changed, 18 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 082be6c8cf5..2ed0b9b133c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12006-03-11 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4
5 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
6 (x_draw_glyph_string_foreground)
7 (x_draw_composite_glyph_string_foreground)
8 (x_draw_image_foreground): Don't subtract 1 from width and height
9 arguments to mac_draw_rectangle.
10 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
11
12006-03-10 Kim F. Storm <storm@cua.dk> 122006-03-10 Kim F. Storm <storm@cua.dk>
2 13
3 * alloc.c (USE_POSIX_MEMALIGN): Fix last change. 14 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
diff --git a/src/macterm.c b/src/macterm.c
index 985421b12c5..649bfb43ef5 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -598,7 +598,7 @@ mac_draw_rectangle (f, gc, x, y, width, height)
598 SetPortWindowPort (FRAME_MAC_WINDOW (f)); 598 SetPortWindowPort (FRAME_MAC_WINDOW (f));
599 599
600 RGBForeColor (GC_FORE_COLOR (gc)); 600 RGBForeColor (GC_FORE_COLOR (gc));
601 SetRect (&r, x, y, x + width + 1, y + height + 1); 601 SetRect (&r, x, y, x + width, y + height);
602 602
603 mac_begin_clip (gc); 603 mac_begin_clip (gc);
604 FrameRect (&r); /* using foreground color of gc */ 604 FrameRect (&r); /* using foreground color of gc */
@@ -2436,7 +2436,7 @@ x_draw_glyph_string_foreground (s)
2436 { 2436 {
2437 struct glyph *g = s->first_glyph + i; 2437 struct glyph *g = s->first_glyph + i;
2438 mac_draw_rectangle (s->f, s->gc, x, s->y, 2438 mac_draw_rectangle (s->f, s->gc, x, s->y,
2439 g->pixel_width - 1, s->height - 1); 2439 g->pixel_width, s->height);
2440 x += g->pixel_width; 2440 x += g->pixel_width;
2441 } 2441 }
2442 } 2442 }
@@ -2515,7 +2515,7 @@ x_draw_composite_glyph_string_foreground (s)
2515 { 2515 {
2516 if (s->gidx == 0) 2516 if (s->gidx == 0)
2517 mac_draw_rectangle (s->f, s->gc, x, s->y, 2517 mac_draw_rectangle (s->f, s->gc, x, s->y,
2518 s->width - 1, s->height - 1); 2518 s->width, s->height);
2519 } 2519 }
2520 else 2520 else
2521 { 2521 {
@@ -3068,15 +3068,15 @@ x_draw_image_foreground (s)
3068 int r = s->img->relief; 3068 int r = s->img->relief;
3069 if (r < 0) r = -r; 3069 if (r < 0) r = -r;
3070 mac_draw_rectangle (s->f, s->gc, x - r, y - r, 3070 mac_draw_rectangle (s->f, s->gc, x - r, y - r,
3071 s->slice.width + r*2 - 1, 3071 s->slice.width + r*2,
3072 s->slice.height + r*2 - 1); 3072 s->slice.height + r*2);
3073 } 3073 }
3074 } 3074 }
3075 } 3075 }
3076 else 3076 else
3077 /* Draw a rectangle if image could not be loaded. */ 3077 /* Draw a rectangle if image could not be loaded. */
3078 mac_draw_rectangle (s->f, s->gc, x, y, 3078 mac_draw_rectangle (s->f, s->gc, x, y,
3079 s->slice.width - 1, s->slice.height - 1); 3079 s->slice.width, s->slice.height);
3080} 3080}
3081 3081
3082 3082
@@ -5245,7 +5245,7 @@ x_draw_hollow_cursor (w, row)
5245 /* Compute frame-relative coordinates for phys cursor. */ 5245 /* Compute frame-relative coordinates for phys cursor. */
5246 x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x); 5246 x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
5247 y = get_phys_cursor_geometry (w, row, cursor_glyph, &h); 5247 y = get_phys_cursor_geometry (w, row, cursor_glyph, &h);
5248 wd = w->phys_cursor_width; 5248 wd = w->phys_cursor_width + 1;
5249 5249
5250 /* The foreground of cursor_gc is typically the same as the normal 5250 /* The foreground of cursor_gc is typically the same as the normal
5251 background color, which can cause the cursor box to be invisible. */ 5251 background color, which can cause the cursor box to be invisible. */