From 7698a4b98e089cf83ea201f6483558fa71b3ac04 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 26 Sep 2016 06:26:59 +0000 Subject: MacOS platform: centralize check whether a font has been set before drawing text git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Graphics_Driver.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 407e490df..2f550124b 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -271,7 +271,7 @@ public: /** Return the current line descent */ virtual int descent() { return 0; } /** Return the current Fl_Font_Descriptor */ - virtual Fl_Font_Descriptor *font_descriptor() { return font_descriptor_;} + inline Fl_Font_Descriptor *font_descriptor() { return font_descriptor_;} /** Set the current Fl_Font_Descriptor */ virtual void font_descriptor(Fl_Font_Descriptor *d) { font_descriptor_ = d;} /** see fl_draw_image(const uchar* buf, int X,int Y,int W,int H, int D, int L) */ -- cgit v1.2.3