Dear Matthew,

>> For large root window sizes, Scr->rootw * Scr->rooth *
>> Scr->OpaqueResizeThreshold overflows a 32 bit signed integer.
> 
> OK, now I just have to know; what the heck kinda root window size do
> you run to pull that off?  In a glance at Newegg, the 30" widescreen
> LCD's run 2560x1600; that leaves that equation at around a fifth of
> the total necessary to overrun a int32.  Heck, Wikipedia's list of
> resolutions shows the 'smallest' resolution that could blow up signed
> is probably WHSXGA (who comes up with these designations?) at
> 6400x4096.

I realize that the math doesn't exactly work out right, so I expect
this is more of a compiler issue.  However, I was clearly ending up
with a negative number for part of the calculation.  The monitor
resolution is, in fact, at something like 2560.  When I get the chance
(I'm on vacation right now), I'll send you an annotated list of the
equation results through that section of code.  My solution may just
be a "workaround for stupid compilers", but at worst, it's a harmless
algebraic manipulation.

>> Would you like a ctwm patch for antialiased freetype fonts?
> 
> Well, we'd like a ctwm patch for just about anything you can think of.
> Sounds like it'd be lot harder to get reviewed though; the number of
> people who understand font rendering is a lot smaller than those of us
> that can hack basic algebra.

I sent a patch to Richard Levitte;  I can forward it to you, too, if
you like.  I'm using my modified version all the time, now;  it looks
great!  My only problem with it is that all the Xft fonts appear to
define rather overly generous ascent and height values that are way
out of proportion to the same measurements on equivalent X11 fonts.
I've noticed this problem on Tcl/Tk and xterm and other software that
has switched to or added Xft font support.  So I added an empirically-
derived adjustment that needs a bit of tweaking to make exactly right.

                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: [EMAIL PROTECTED]    |
| Open Circuit Design, Inc.      | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-5030               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+

Reply via email to