comparison src/macterm.h @ 65252:a5c9f3938a21

(PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 31 Aug 2005 08:35:56 +0000
parents a0d1312ede66
children a86e9a781ba7 532e0a9335a9 a3716f7538f2
comparison
equal deleted inserted replaced
65251:bd6366e3f520 65252:a5c9f3938a21
36 #define GREEN16_FROM_ULONG(color) (GREEN_FROM_ULONG(color) * 0x101) 36 #define GREEN16_FROM_ULONG(color) (GREEN_FROM_ULONG(color) * 0x101)
37 #define BLUE16_FROM_ULONG(color) (BLUE_FROM_ULONG(color) * 0x101) 37 #define BLUE16_FROM_ULONG(color) (BLUE_FROM_ULONG(color) * 0x101)
38 38
39 #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0) 39 #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0)
40 #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255) 40 #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255)
41
42 /* A black pixel in a mask bitmap/pixmap means ``draw a source
43 pixel''. A white pixel means ``retain the current pixel''. */
44 #define PIX_MASK_DRAW(f) BLACK_PIX_DEFAULT(f)
45 #define PIX_MASK_RETAIN(f) WHITE_PIX_DEFAULT(f)
46 41
47 #define FONT_WIDTH(f) ((f)->max_bounds.width) 42 #define FONT_WIDTH(f) ((f)->max_bounds.width)
48 #define FONT_HEIGHT(f) ((f)->ascent + (f)->descent) 43 #define FONT_HEIGHT(f) ((f)->ascent + (f)->descent)
49 #define FONT_BASE(f) ((f)->ascent) 44 #define FONT_BASE(f) ((f)->ascent)
50 #define FONT_DESCENT(f) ((f)->descent) 45 #define FONT_DESCENT(f) ((f)->descent)