summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index bd8f25715..98fa750c0 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2196,16 +2196,9 @@ static CGContextRef prepare_bitmap_for_layer(int w, int h ) {
if (!Fl::use_high_res_GL() && fl_mac_os_version < 101401) [self layer].contentsScale = 1.;
Fl_Window *window = [(FLWindow*)[self window] getFl_Window];
Fl_Cocoa_Window_Driver *d = Fl_Cocoa_Window_Driver::driver(window);
- through_drawRect = YES;
- window->clear_damage(FL_DAMAGE_ALL);
- window->as_gl_window()->flush();
- window->clear_damage();
- through_drawRect = NO;
- if (fl_mac_os_version < 101401) {
- if (window->parent()) window->redraw(); // useful during resize of GL subwindow
- }
if (d->wait_for_expose_value) {
// 1st drawing of GL window
+ [self did_view_resolution_change];
NSRect r = [[self window] frame];
r.size.width -= 1;
[[self window] setFrame:r display:NO]; // very dirty but works. Should find something better.
@@ -2213,6 +2206,14 @@ static CGContextRef prepare_bitmap_for_layer(int w, int h ) {
[[self window] setFrame:r display:YES];
d->wait_for_expose_value = 0;
}
+ through_drawRect = YES;
+ window->clear_damage(FL_DAMAGE_ALL);
+ window->as_gl_window()->flush();
+ window->clear_damage();
+ through_drawRect = NO;
+ if (fl_mac_os_version < 101401) {
+ if (window->parent()) window->redraw(); // useful during resize of GL subwindow
+ }
fl_unlock_function();
}
-(void)viewFrameDidChange { ; }