DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2115
Version: 1.3-current


The following convenience function code in fl_draw() is wrong, and seems to
be affecting Fl_Text_Editor/Fl_Text_Display negatively:

-------------------------------------------------------------
/**
  Dummy passthru function called only in Fl_Text_Display that simply
returns
  the font height as given by the \a size parameter in the same call!

  \todo Is fl_height(int, int size) required for Fl_Text_Dispay?
        Why not use \a size parameter directly?
*/
inline int fl_height(int, int size) {return size;}
-------------------------------------------------------------

When called with fl_height(FL_COURIER, 11), the result is 11 (which is
wrong).

The normal sequence most code is using is:

    fl_font(FL_COURIER,11);
    fl_height();

..which comes back with the correct value of 14.


Link: http://www.fltk.org/str.php?L2115
Version: 1.3-current

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

Reply via email to