From cb902eebe3b419e77599fe669bc0cbeb3bce104a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 7 Feb 2011 13:49:34 +0000 Subject: Replaced global variable fl_fontsize by fl_graphics_driver->font_descriptor(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8395 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Fl_cocoa.mm') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 2783f7673..c54ecd073 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3,7 +3,7 @@ // // MacOS-Cocoa specific code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2011 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -2238,8 +2238,6 @@ void Fl_Window::make_current() } // helper function to manage the current CGContext fl_gc -extern class Fl_Font_Descriptor *fl_fontsize; -extern void fl_font(class Fl_Font_Descriptor*); extern void fl_quartz_restore_line_style_(); // FLTK has only one global graphics state. This function copies the FLTK state into the @@ -2251,7 +2249,6 @@ void Fl_X::q_fill_context() { CGContextTranslateCTM(fl_gc, 0.5, hgt-0.5f); CGContextScaleCTM(fl_gc, 1.0f, -1.0f); // now 0,0 is top-left point of the context } - fl_font(fl_fontsize); fl_color(fl_graphics_driver->color()); fl_quartz_restore_line_style_(); } -- cgit v1.2.3