From d3206f01ec18e61e8cd9c7e88b02a6313ab227fa Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 15 Apr 2009 08:35:28 +0000 Subject: More Fl_Input keyboard fixes / OS X transparency for RGBA data / some utf8 reorganisation git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Fl_Input_.cxx') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index e82d8badb..1e74c309a 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1024,6 +1024,16 @@ Fl_Input_::~Fl_Input_() { if (bufsize) free((void*)buffer); } +int Fl_Input_::linesPerPage() { + int n = 1; + if (input_type() == FL_MULTILINE_INPUT) { + fl_font(textfont(),textsize()); //ensure current font is set to ours + n = h()/fl_height(); // number of lines to scroll + if (n<=0) n = 1; + } + return n; +} + // // End of "$Id$". // -- cgit v1.2.3