summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-14 06:36:20 +0000
committerManolo Gouy <Manolo>2016-02-14 06:36:20 +0000
commitec290bc9e03c67de690649d1d3174cce0f5b3eec (patch)
tree16601fa88281039e6e41b4502ee319a849ebfcfc /src/Fl_cocoa.mm
parent6439f34ee7d84dae786c73388c4bae54f31c65e4 (diff)
Remove Fl_X::q_fill_context() used only once.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 6c52ccb98..02a5b4a35 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3305,26 +3305,6 @@ void Fl_Window::make_current()
#endif
}
-// helper function to manage the current CGContext fl_gc
-extern void fl_quartz_restore_line_style_();
-
-// FLTK has only one global graphics state. This function copies the FLTK state into the
-// current Quartz context
-void Fl_X::q_fill_context() {
- if (!fl_gc) return;
- if ( ! fl_window) { // a bitmap context
- CGFloat hgt = CGBitmapContextGetHeight(fl_gc);
- CGAffineTransform at = CGContextGetCTM(fl_gc);
- if (at.a != 1 && at.a == at.d && at.b == 0 && at.c == 0) { // proportional scaling, no rotation
- hgt /= at.a;
- }
- 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_color(fl_graphics_driver->color());
- fl_quartz_restore_line_style_();
-}
-
// Give the Quartz context back to the system
void Fl_X::q_release_context(Fl_X *x) {
if (x && x->gc!=fl_gc) return;