summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-19 07:36:29 +0000
committerManolo Gouy <Manolo>2011-02-19 07:36:29 +0000
commitcbaecee14e24a006ec82b4469cb92c0a7a0551e4 (patch)
tree34ca86aa5e10879365c4decbe4b031472da3364a /src
parentf5f0cf99084feba5545e8444abc6e61d1142a7c8 (diff)
Minor improvement of the Fl_Graphics_Driver::text_extents() function used only if
a graphics driver does not properly implement text extents calculation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Device.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx
index 2b98bdf39..70d7f5fa3 100644
--- a/src/Fl_Device.cxx
+++ b/src/Fl_Device.cxx
@@ -68,7 +68,8 @@ void Fl_Graphics_Driver::text_extents(const char*t, int n, int& dx, int& dy, int
{
w = (int)width(t, n);
h = - height();
- dx = dy = 0;
+ dx = 0;
+ dy = descent();
}