diff options
| author | Jan Djärv | 2010-05-06 11:34:56 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-05-06 11:34:56 +0200 |
| commit | 3e56b11d4a61af61b1af040a76abc842d89c8bf0 (patch) | |
| tree | ef6f6628635a31f3d5d7c4740dadb7251bfc4118 | |
| parent | 9566840faf0378750569f1228ead9488bc1bf64d (diff) | |
| download | emacs-3e56b11d4a61af61b1af040a76abc842d89c8bf0.tar.gz emacs-3e56b11d4a61af61b1af040a76abc842d89c8bf0.zip | |
* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xterm.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cad37cd432b..889c261f204 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-05-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xterm.c (x_draw_image_relief): Move declaration of extra to beginning. | ||
| 4 | |||
| 1 | 2010-05-06 Glenn Morris <rgm@gnu.org> | 5 | 2010-05-06 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * Makefile.in (CPP, LN_S): Remove unused variables. | 7 | * Makefile.in (CPP, LN_S): Remove unused variables. |
diff --git a/src/xterm.c b/src/xterm.c index ec550100cea..f867632f22f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2291,7 +2291,7 @@ static void | |||
| 2291 | x_draw_image_relief (s) | 2291 | x_draw_image_relief (s) |
| 2292 | struct glyph_string *s; | 2292 | struct glyph_string *s; |
| 2293 | { | 2293 | { |
| 2294 | int x0, y0, x1, y1, thick, raised_p; | 2294 | int x0, y0, x1, y1, thick, raised_p, extra; |
| 2295 | XRectangle r; | 2295 | XRectangle r; |
| 2296 | int x = s->x; | 2296 | int x = s->x; |
| 2297 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); | 2297 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); |
| @@ -2322,7 +2322,7 @@ x_draw_image_relief (s) | |||
| 2322 | raised_p = s->img->relief > 0; | 2322 | raised_p = s->img->relief > 0; |
| 2323 | } | 2323 | } |
| 2324 | 2324 | ||
| 2325 | int extra = s->face->id == TOOL_BAR_FACE_ID | 2325 | extra = s->face->id == TOOL_BAR_FACE_ID |
| 2326 | ? XINT (Vtool_bar_button_margin) : 0; | 2326 | ? XINT (Vtool_bar_button_margin) : 0; |
| 2327 | 2327 | ||
| 2328 | x0 = x - thick - extra; | 2328 | x0 = x - thick - extra; |