]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_image_relief): Use predefined macro instead of constant when the
authorPavel Janík <Pavel@Janik.cz>
Sun, 2 Dec 2001 17:29:41 +0000 (17:29 +0000)
committerPavel Janík <Pavel@Janik.cz>
Sun, 2 Dec 2001 17:29:41 +0000 (17:29 +0000)
value of `tool_bar_button_relief' is negative.

src/ChangeLog
src/xterm.c

index 69d2286bc8aefd1a6b81b180e25bafed4c9019d8..2c31f914483bcdd1324b54ed970394b10f8e777a 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-02  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * xterm.c (x_draw_image_relief): Use predefined macro instead of
+       constant when the value of `tool_bar_button_relief' is negative.
+
 2001-12-02  Richard M. Stallman  <rms@gnu.org>
 
        * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
index 13bc4d3a19cf2f9b7973adcf1767153b2da4ce10..db255f0765989bcdfa985d8497a22f9f42a95c36 100644 (file)
@@ -4129,7 +4129,7 @@ x_draw_image_relief (s)
   if (s->hl == DRAW_IMAGE_SUNKEN
       || s->hl == DRAW_IMAGE_RAISED)
     {
-      thick = tool_bar_button_relief >= 0 ? tool_bar_button_relief : 3;
+      thick = tool_bar_button_relief >= 0 ? tool_bar_button_relief : DEFAULT_TOOL_BAR_BUTTON_RELIEF;
       raised_p = s->hl == DRAW_IMAGE_RAISED;
     }
   else