aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 869c1df1847..aa4c8140451 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -28,10 +28,15 @@ Boston, MA 02111-1307, USA. */
28#define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0) 28#define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0)
29#define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255) 29#define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255)
30 30
31#define FONT_WIDTH(f) ((f)->tm.tmAveCharWidth) 31#define FONT_WIDTH(f) \
32#define FONT_HEIGHT(f) ((f)->tm.tmHeight) 32 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth)
33#define FONT_BASE(f) ((f)->tm.tmAscent) 33#define FONT_HEIGHT(f) \
34#define FONT_MAX_WIDTH(f) ((f)->tm.tmMaxCharWidth) 34 ((f)->bdf ? (f)->bdf->height : (f)->tm.tmHeight)
35/* No idea why 5 seems to work in here, but it does */
36#define FONT_BASE(f) \
37 ((f)->bdf ? (f)->bdf->ury : (f)->tm.tmAscent)
38#define FONT_MAX_WIDTH(f) \
39 ((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth)
35 40
36#define CHECK_W32_FRAME(f, frame) \ 41#define CHECK_W32_FRAME(f, frame) \
37 if (NILP (frame)) \ 42 if (NILP (frame)) \