]> code.delx.au - gnu-emacs/commitdiff
(mac_draw_rectangle): Don't add 1 to width and height.
authorEli Zaretskii <eliz@gnu.org>
Sat, 11 Mar 2006 12:03:12 +0000 (12:03 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 11 Mar 2006 12:03:12 +0000 (12:03 +0000)
(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.

src/ChangeLog
src/macterm.c

index 082be6c8cf5ea3f2ca1a2f09731c95c2300cbf9f..2ed0b9b133c2703431f904d0718e7b2e0206a987 100644 (file)
@@ -1,3 +1,14 @@
+2006-03-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
+
+       * macterm.c (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.
+
 2006-03-10  Kim F. Storm  <storm@cua.dk>
 
        * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
index 985421b12c5d4781b063b64c77f515f9bca9c66e..649bfb43ef560a15801db997c442c46e4a088d7a 100644 (file)
@@ -598,7 +598,7 @@ mac_draw_rectangle (f, gc, x, y, width, height)
   SetPortWindowPort (FRAME_MAC_WINDOW (f));
 
   RGBForeColor (GC_FORE_COLOR (gc));
-  SetRect (&r, x, y, x + width + 1, y + height + 1);
+  SetRect (&r, x, y, x + width, y + height);
 
   mac_begin_clip (gc);
   FrameRect (&r); /* using foreground color of gc */
@@ -2436,7 +2436,7 @@ x_draw_glyph_string_foreground (s)
        {
          struct glyph *g = s->first_glyph + i;
          mac_draw_rectangle (s->f, s->gc, x, s->y,
-                             g->pixel_width - 1, s->height - 1);
+                             g->pixel_width, s->height);
          x += g->pixel_width;
        }
     }
@@ -2515,7 +2515,7 @@ x_draw_composite_glyph_string_foreground (s)
     {
       if (s->gidx == 0)
        mac_draw_rectangle (s->f, s->gc, x, s->y,
-                           s->width - 1, s->height - 1);
+                           s->width, s->height);
     }
   else
     {
@@ -3068,15 +3068,15 @@ x_draw_image_foreground (s)
              int r = s->img->relief;
              if (r < 0) r = -r;
              mac_draw_rectangle (s->f, s->gc, x - r, y - r,
-                                 s->slice.width + r*2 - 1,
-                                 s->slice.height + r*2 - 1);
+                                 s->slice.width + r*2,
+                                 s->slice.height + r*2);
            }
        }
     }
   else
     /* Draw a rectangle if image could not be loaded.  */
     mac_draw_rectangle (s->f, s->gc, x, y,
-                       s->slice.width - 1, s->slice.height - 1);
+                       s->slice.width, s->slice.height);
 }
 
 
@@ -5245,7 +5245,7 @@ x_draw_hollow_cursor (w, row)
   /* Compute frame-relative coordinates for phys cursor.  */
   x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
   y = get_phys_cursor_geometry (w, row, cursor_glyph, &h);
-  wd = w->phys_cursor_width;
+  wd = w->phys_cursor_width + 1;
 
   /* The foreground of cursor_gc is typically the same as the normal
      background color, which can cause the cursor box to be invisible.  */