mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(VCENTER_BASELINE_OFFSET): Fix previous change. If the
font is taller than the frame line, we don't have to vias the division by two.
This commit is contained in:
parent
3747ef2c89
commit
458f45fad3
@ -1926,7 +1926,8 @@ x_produce_stretch_glyph (it)
|
||||
|
||||
#define VCENTER_BASELINE_OFFSET(FONT, F) \
|
||||
(FONT_DESCENT (FONT) \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT)) \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) > FONT_HEIGHT ((FONT)))) / 2 \
|
||||
- (FONT_DESCENT (FRAME_FONT (F)) - FRAME_BASELINE_OFFSET (F)))
|
||||
|
||||
/* Produce glyphs/get display metrics for the display element IT is
|
||||
|
@ -1777,7 +1777,8 @@ x_produce_stretch_glyph (it)
|
||||
|
||||
#define VCENTER_BASELINE_OFFSET(FONT, F) \
|
||||
((FONT)->descent \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT)) \
|
||||
+ (FRAME_LINE_HEIGHT ((F)) > FONT_HEIGHT ((FONT)))) / 2 \
|
||||
- ((F)->output_data.x->font->descent - (F)->output_data.x->baseline_offset))
|
||||
|
||||
/* Produce glyphs/get display metrics for the display element IT is
|
||||
|
Loading…
Reference in New Issue
Block a user