diff options
| author | Manolo Gouy <Manolo> | 2011-02-18 13:39:48 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-18 13:39:48 +0000 |
| commit | 199b32d9213584e232aee11d2a4d16a26f1d508d (patch) | |
| tree | ff04fbca414c4ab7a497283f082bcf5f12b9a6de /src/fl_font.cxx | |
| parent | 2c129b4833f45157fde8f90451240d4c00bbc96d (diff) | |
Added virtual width(), height(), descent() and text_extents() functions to the Fl_Graphics_Driver
class to prepare for the future definition of graphics drivers that fully deal with text measurement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font.cxx')
| -rw-r--r-- | src/fl_font.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fl_font.cxx b/src/fl_font.cxx index 2a6833adf..53a639efd 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -81,11 +81,13 @@ void fl_text_extents(const char *c, int &dx, int &dy, int &w, int &h) { } // fl_text_extents -#ifndef __APPLE__ void fl_draw(const char* str, int l, float x, float y) { +#ifdef __APPLE__ + fl_graphics_driver->draw(str, l, x, y); +#else fl_draw(str, l, (int)x, (int)y); -} #endif +} // // End of "$Id$". // |
