summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-11-20 16:52:35 +0000
committerManolo Gouy <Manolo>2018-11-20 16:52:35 +0000
commit3e6d8903d46f932a45980c139eb08bf0a11725dc (patch)
treebf6286204263c6c245fbf965ca7e71bc13f8f7eb /src
parent95aa03d86d3ffd55897d4fc9097f91ff51288f0c (diff)
Minor reorder of operations performed when layered window is 1st drawn.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 0efdadfda..7f4a82450 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2248,8 +2248,8 @@ static CGContextRef prepare_bitmap_for_layer(int w, int h ) {
}
if (!layer_data) { // runs when window is created, resized, changed screen resolution
layer.bounds = NSRectToCGRect(rect);
- d->wait_for_expose_value = 0;
[self did_view_resolution_change];
+ d->wait_for_expose_value = 0;
if (d->mapped_to_retina()) {
rect.size.width *= 2; rect.size.height *= 2;
layer.contentsScale = 2.;