diff options
author | Gerd Moellmann <[email protected]> | 2000-05-02 20:02:29 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2000-05-02 20:02:29 +0000 |
commit | 95af8492a3f29dc8bfaeb6cfd4fb0edb478a885a (patch) | |
tree | effc47bdd524e3e2ff821f13efc73f095fdc90bc /src/xterm.c | |
parent | a6ce554033c983dc8f3b90200124d189c3ca8b42 (diff) |
(x_produce_image_glyph, x_draw_image_foreground)
(x_draw_image_relief, x_draw_image_foreground_1): Call function
image_ascent instead of using IMAGE_ASCENT.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index 0bb64d881b..2629ec943b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1492,7 +1492,7 @@ x_produce_image_glyph (it) PREPARE_FACE_FOR_DISPLAY (it->f, face); prepare_image_for_display (it->f, img); - it->ascent = it->phys_ascent = IMAGE_ASCENT (img); + it->ascent = it->phys_ascent = image_ascent (img, face); it->descent = it->phys_descent = img->height + 2 * img->margin - it->ascent; it->pixel_width = img->width + 2 * img->margin; @@ -3560,7 +3560,7 @@ x_draw_image_foreground (s) struct glyph_string *s; { int x; - int y = s->ybase - IMAGE_ASCENT (s->img); + int y = s->ybase - image_ascent (s->img, s->face); /* If first glyph of S has a left box line, start drawing it to the right of that line. */ @@ -3639,7 +3639,7 @@ x_draw_image_relief (s) int x0, y0, x1, y1, thick, raised_p; XRectangle r; int x; - int y = s->ybase - IMAGE_ASCENT (s->img); + int y = s->ybase - image_ascent (s->img, s->face); /* If first glyph of S has a left box line, start drawing it to the right of that line. */ @@ -3688,7 +3688,7 @@ x_draw_image_foreground_1 (s, pixmap) Pixmap pixmap; { int x; - int y = s->ybase - s->y - IMAGE_ASCENT (s->img); + int y = s->ybase - s->y - image_ascent (s->img, s->face); /* If first glyph of S has a left box line, start drawing it to the right of that line. */ |