diff options
| author | Miles Bader | 2000-10-23 03:14:04 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-10-23 03:14:04 +0000 |
| commit | 0e9becceb1eca246a84d3d8ac05b65a2e84bbfa7 (patch) | |
| tree | 63f8136c9ce528ae136834ec9f44cce76f05f04a /src | |
| parent | 8ec118cdd6f4a8ca65199eecb01f0c68d05ab4f2 (diff) | |
| download | emacs-0e9becceb1eca246a84d3d8ac05b65a2e84bbfa7.tar.gz emacs-0e9becceb1eca246a84d3d8ac05b65a2e84bbfa7.zip | |
(VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a font
can't be exactly centered, it errs up rather than down.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9921ad03e7f..c4affa4a883 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1777,7 +1777,7 @@ x_produce_stretch_glyph (it) | |||
| 1777 | 1777 | ||
| 1778 | #define VCENTER_BASELINE_OFFSET(FONT, F) \ | 1778 | #define VCENTER_BASELINE_OFFSET(FONT, F) \ |
| 1779 | ((FONT)->descent \ | 1779 | ((FONT)->descent \ |
| 1780 | + (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT))) / 2 \ | 1780 | + (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \ |
| 1781 | - ((F)->output_data.x->font->descent - (F)->output_data.x->baseline_offset)) | 1781 | - ((F)->output_data.x->font->descent - (F)->output_data.x->baseline_offset)) |
| 1782 | 1782 | ||
| 1783 | /* Produce glyphs/get display metrics for the display element IT is | 1783 | /* Produce glyphs/get display metrics for the display element IT is |