Article View: comp.os.ms-windows.programmer.misc
Article #2893Re: int / int ?
From: bowman
Date: Sun, 29 Nov 1998 00:00
Date: Sun, 29 Nov 1998 00:00
16 lines
1254 bytes
1254 bytes
Tom Burke wrote: > > cxCaps = (tm.tmPitchAndFamily & 1 ? 3 : 2) * cxChar / 2 ; so, if cxChar is 30, say, it evaluates to (2 * 30) / 2 , or cxCaps = 30 (3 * 30) / 2 , or cxCaps = 45 45 is (1.5 * 30) when you are doing integer math, you need to look at the whole expression, and not try to pick out parts. cxCaps apparently is the width of the character, not a multiplier.
Technical Details
Message-ID:
<36615C26.CA1D4776@montana.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<366155E6.632A909D@erols.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,7450d421b142666f X-Google-Attributes: gidf8d38,public X-Google-Thread: 1014db,7450d421b142666f X-Google-Attributes: gid1014db,public X-Google-Thread: 105df1,7450d421b142666f X-Google-Attributes: gid105df1,public From: bowman <bowman@montana.com> Subject: Re: int / int ? Date: 1998/11/29 Message-ID: <36615C26.CA1D4776@montana.com> X-Deja-AN: 416771049 Content-Transfer-Encoding: 7bit References: <366155E6.632A909D@erols.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: newsfeed.slurp.net 912350334 208.4.224.54 (Sun, 29 Nov 1998 08:38:54 CDT) MIME-Version: 1.0 Reply-To: bowman@montana.com NNTP-Posting-Date: Sun, 29 Nov 1998 08:38:54 CDT Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language,comp.lang.c