diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2009-04-15 08:35:28 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2009-04-15 08:35:28 +0000 |
| commit | d3206f01ec18e61e8cd9c7e88b02a6313ab227fa (patch) | |
| tree | ada81f236fbf8b967f5de8d45b39ad23cbd75d7f /src/Fl_Input_.cxx | |
| parent | b214cef3a8d2d9ecf0df7bef7d10dcdfbca4d9d3 (diff) | |
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
Diffstat (limited to 'src/Fl_Input_.cxx')
| -rw-r--r-- | src/Fl_Input_.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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$". // |
