aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-06-02 22:06:44 +0000
committerJason Rumney2007-06-02 22:06:44 +0000
commit1445e9c6c6f9b643d316c402a2b9fcc4fe78d3c6 (patch)
treedadda8594ce7172b1c3f6cf3e7bd1cad65efc61a /src
parent88fce384f4873c6bd482fb96f3523623aa3abe6c (diff)
downloademacs-1445e9c6c6f9b643d316c402a2b9fcc4fe78d3c6.tar.gz
emacs-1445e9c6c6f9b643d316c402a2b9fcc4fe78d3c6.zip
(FONT_WIDTH): Report max width, not average.
(FONT_MAX_WIDTH): Remove. (FONT_AVG_WIDTH): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 52b6d9c9427..6eb7988b485 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -28,15 +28,15 @@ Boston, MA 02110-1301, USA. */
28#define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255) 28#define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255)
29 29
30#define FONT_WIDTH(f) \ 30#define FONT_WIDTH(f) \
31 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth) 31 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth)
32#define FONT_HEIGHT(f) \ 32#define FONT_HEIGHT(f) \
33 ((f)->bdf ? (f)->bdf->height : (f)->tm.tmHeight) 33 ((f)->bdf ? (f)->bdf->height : (f)->tm.tmHeight)
34#define FONT_BASE(f) \ 34#define FONT_BASE(f) \
35 ((f)->bdf ? (f)->bdf->ury : (f)->tm.tmAscent) 35 ((f)->bdf ? (f)->bdf->ury : (f)->tm.tmAscent)
36#define FONT_DESCENT(f) \ 36#define FONT_DESCENT(f) \
37 ((f)->bdf ? -((f)->bdf->lly) : (f)->tm.tmDescent) 37 ((f)->bdf ? -((f)->bdf->lly) : (f)->tm.tmDescent)
38#define FONT_MAX_WIDTH(f) \ 38#define FONT_AVG_WIDTH(f) \
39 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth) 39 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth)
40 40
41#define CP_DEFAULT 1004 41#define CP_DEFAULT 1004
42/* Special pseudo-codepages. */ 42/* Special pseudo-codepages. */