Re: Take monospace fonts into account in default font selectionalgorithm.
7 Aug
2004
7 Aug
'04
10:59 p.m.
Mike Hearn <mike(a)navi.cx> writes:
On Sat, 2004-08-07 at 23:16 +0900, Dmitry Timoshkov wrote:
This can't work because instead of logical boolean results you compare binary flags which are different:
#define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 )
#define MONO_FONT 0x08
You are right. I will watch out for this in future! Here is a fixed patch.
The correct way to compare booleans in C is to invert them, i.e. instead of (a == b) use (!a == !b). You must not rely on booleans being always 0 or 1. -- Alexandre Julliard julliard(a)winehq.org
7800
Age (days ago)
7800
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard