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
Link: http://www.fltk.org/str.php?L2115
Version: 1.3-current
--- FL/fl_draw.H.orig 2009-03-04 07:48:22.000000000 -0800
+++ FL/fl_draw.H 2009-03-04 08:19:25.000000000 -0800
@@ -201,7 +201,7 @@
\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;}
+FL_EXPORT int fl_height(int font, int size);
/**
Returns the recommended distance above the bottom of a fl_height() tall box
to
draw the text at so it looks centered vertically in that box.
--- src/fl_draw.cxx.orig 2009-03-04 07:50:30.000000000 -0800
+++ src/fl_draw.cxx 2009-03-04 07:50:39.000000000 -0800
@@ -422,6 +422,15 @@
h = lines*h;
}
+int fl_height(int font, int size) {
+ if ( font == fl_font() && size == fl_size() ) return(fl_height());
+ int tf = fl_font(), ts = fl_size(); // save
+ fl_font(font,size);
+ int height = fl_height();
+ fl_font(tf,ts); // restore
+ return(height);
+}
+
//
// End of "$Id: fl_draw.cxx 6616 2009-01-01 21:28:26Z matt $".
//
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs