diff options
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c index 6f74972df91..3b64348a6a3 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1925,9 +1925,10 @@ x_produce_stretch_glyph (it) | |||
| 1925 | */ | 1925 | */ |
| 1926 | 1926 | ||
| 1927 | #define VCENTER_BASELINE_OFFSET(FONT, F) \ | 1927 | #define VCENTER_BASELINE_OFFSET(FONT, F) \ |
| 1928 | (FONT_DESCENT (FONT) \ | 1928 | (FONT_DESCENT (FONT) \ |
| 1929 | + (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \ | 1929 | + (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT)) \ |
| 1930 | - (FONT_DESCENT (FRAME_FONT (F)) - FRAME_BASELINE_OFFSET (F))) | 1930 | + (FRAME_LINE_HEIGHT ((F)) > FONT_HEIGHT ((FONT)))) / 2 \ |
| 1931 | - (FONT_DESCENT (FRAME_FONT (F)) - FRAME_BASELINE_OFFSET (F))) | ||
| 1931 | 1932 | ||
| 1932 | /* Produce glyphs/get display metrics for the display element IT is | 1933 | /* Produce glyphs/get display metrics for the display element IT is |
| 1933 | loaded with. See the description of struct display_iterator in | 1934 | loaded with. See the description of struct display_iterator in |