On 30 Nov 2008, at 18:14, Greg Ercolano wrote:

> I had to make this change to fl_text_extents() in fl_font_x.cxx
> (from the fltk-1.3.x-r6530 weekly snapshot) in order for it to compile
> on redhat 7.2:
>
> ----
> void fl_text_extents(const char *c, int n, int &dx, int &dy, int  
> &W, int &H) {
> #warning fl_text_extents is only a test stub in Xlib build at present
>   W = 0; H = 0;
>   fl_measure(c, W, H, 0);
>   dx = 0;
>   dy = fl_descent() - H;
> } // fl_text_extents
> ----
>
> Basically up cased w/h -> W/H, and removed the unneeded &'s on the W/H
> in fl_measure() (because fl_measure() doesn't expect pointers)

Ouch! Thanks Greg - your change is obviously correct. What was I  
thinking?

More to the point, how did I get it to compile on my non-XFT test  
setup? I need to go back over that build and see what I actually did  
compile.

-- 
Ian



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to