Commit 9c35997b authored by Geoff Voelker's avatar Geoff Voelker
Browse files

(FONT_WIDTH): Use average character width, not maximum.

parent a259d337
......@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */
#define BLACK_PIX_DEFAULT(f) RGB(0,0,0)
#define WHITE_PIX_DEFAULT(f) RGB(255,255,255)
#define FONT_WIDTH(f) ((f)->tm.tmMaxCharWidth)
#define FONT_WIDTH(f) ((f)->tm.tmAveCharWidth)
#define FONT_HEIGHT(f) ((f)->tm.tmHeight)
#define FONT_BASE(f) ((f)->tm.tmAscent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment