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
This commit is contained in:
Manolo Gouy 2011-02-19 07:36:29 +00:00
parent f5f0cf9908
commit cbaecee14e

View File

@ -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();
}