diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-18 17:40:18 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-18 17:40:18 +0200 |
| commit | 30e05510fa26ccecb83dcaedb66eeb635a9206e0 (patch) | |
| tree | c4c6a44cb0de82c1e088d48fc5894bc83518c563 /src | |
| parent | 99419b2f63bb928c89c0f2f8b8f82f803b21d78a (diff) | |
Avoid small repetition
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index fc57298b2..d6767ebe8 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2213,7 +2213,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil; } else layer.contentsScale = 1.; static CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB(); layer_data = CGBitmapContextCreate(NULL, rect.size.width, rect.size.height, 8, 4 * rect.size.width, cspace, kCGImageAlphaPremultipliedFirst); - CGContextClearRect(layer_data, CGRectMake(0,0,rect.size.width,rect.size.height)); + CGContextClearRect(layer_data, NSRectToCGRect(rect)); } - (BOOL)did_view_resolution_change { BOOL retval = [super did_view_resolution_change]; |
