From cbaecee14e24a006ec82b4469cb92c0a7a0551e4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 19 Feb 2011 07:36:29 +0000 Subject: 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 --- src/Fl_Device.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3