summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
index 4bfaa39dc..2a223bb9c 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
@@ -296,19 +296,6 @@ void Fl_Quartz_Graphics_Driver::restore_clip() {
CGContextRestoreGState(gc_);
CGContextSaveGState(gc_);
}
- // FLTK has only one global graphics state.
- // This copies the FLTK state into the current Quartz context
- if ( ! fl_window ) { // a bitmap context
- CGFloat hgt = CGBitmapContextGetHeight(gc_);
- CGAffineTransform at = CGContextGetCTM(gc_);
- CGFloat offset = 0.5;
- if (at.a != 1 && at.a == at.d && at.b == 0 && at.c == 0) { // proportional scaling, no rotation
- hgt /= at.a;
- offset /= at.a;
- }
- CGContextTranslateCTM(gc_, offset, hgt-offset);
- CGContextScaleCTM(gc_, 1.0f, -1.0f); // now 0,0 is top-left point of the context
- }
color(color());
quartz_restore_line_style();
if (r) { //apply program clip