diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-19 12:02:51 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-19 12:02:51 +0100 |
| commit | 6aa9357b17c2942a4682a83161207945577a421b (patch) | |
| tree | df912b1e7a98a2e9db09c176864af0859e81cd33 /src/drivers/Quartz | |
| parent | ea09ea1009f4de52ecd0f6df9a8597e62ae1ca5a (diff) | |
Have Fl_Quartz_Copy_Surface_Driver use retina resolution for resulting bitmap
Diffstat (limited to 'src/drivers/Quartz')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx index c525d2985..85fab361b 100644 --- a/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx @@ -60,7 +60,7 @@ Fl_Quartz_Copy_Surface_Driver::Fl_Quartz_Copy_Surface_Driver(int w, int h) : Fl_ CGDataConsumerRelease(myconsumer); if (gc) { CGContextBeginPage(gc, &bounds); - CGContextTranslateCTM(gc, 0, h); + CGContextTranslateCTM(gc, 0.5, h-0.5); CGContextScaleCTM(gc, 1.0f, -1.0f); CGContextSaveGState(gc); } |
