diff options
| author | Manolo Gouy <Manolo> | 2018-10-20 22:09:28 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-10-20 22:09:28 +0000 |
| commit | ab51dfc63669940cfc8bb7a33c9c38e5f40ccb14 (patch) | |
| tree | 03fc32490e2969ca767b01b8b4c40c809e0840b4 | |
| parent | e32b7e1fca0a922078087b3b2c1e38894cdcecf9 (diff) | |
Support GL windows on retina display when app does not set Fl::use_high_res_GL(1)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 284e96eb5..4cbda304d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2202,6 +2202,7 @@ static CGContextRef prepare_bitmap_for_layer(int w, int h ) { @implementation FLViewGL - (void)displayLayer:(CALayer *)layer { + if (!Fl::use_high_res_GL()) layer.contentsScale = 1.; [self drawRect:[self frame]]; Fl_Window *window = [(FLWindow*)[self window] getFl_Window]; if (window->parent()) window->redraw(); // useful during resize of GL subwindow |
