summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-02-02 17:47:55 +0100
committerMatthias Melcher <git@matthiasm.com>2019-02-02 17:47:55 +0100
commit452a410a3ea02f58930c4b3cc5a04bbb6b3e7070 (patch)
treed243cf51c8b20541b46ba051d646c91b5aad1825 /src/Fl_cocoa.mm
parent76668c7cc11c80f337bd7d04d6adead49c8a636f (diff)
STR #2714: remove new shadow lint for MacOS
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 778ac2ae9..5809dc28d 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2204,9 +2204,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
Fl_Cocoa_Window_Driver *d = Fl_Cocoa_Window_Driver::driver(window);
[self did_view_resolution_change];
if (d->wait_for_expose_value) { // 1st drawing of layer-backed GL window
- Fl_Device_Plugin *pi = Fl_Device_Plugin::opengl_plugin();
- if (pi) {
- [pi->context(window) update]; // layer-backed GL windows may be empty without this
+ Fl_Device_Plugin *plugin = Fl_Device_Plugin::opengl_plugin();
+ if (plugin) {
+ [plugin->context(window) update]; // layer-backed GL windows may be empty without this
}
d->wait_for_expose_value = 0;
}
@@ -4265,9 +4265,9 @@ static NSBitmapImageRep* GL_rect_to_nsbitmap(Fl_Window *win, int x, int y, int w
// captures a rectangle from a GL window and returns it as an allocated NSBitmapImageRep
// the capture has high res on retina
{
- Fl_Device_Plugin *pi = Fl_Device_Plugin::opengl_plugin();
- if (!pi) return nil;
- Fl_RGB_Image *img = pi->rectangle_capture(win, x, y, w, h);
+ Fl_Device_Plugin *plugin = Fl_Device_Plugin::opengl_plugin();
+ if (!plugin) return nil;
+ Fl_RGB_Image *img = plugin->rectangle_capture(win, x, y, w, h);
NSBitmapImageRep* bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:img->w() pixelsHigh:img->h() bitsPerSample:8 samplesPerPixel:4 hasAlpha:YES isPlanar:NO colorSpaceName:NSDeviceRGBColorSpace bytesPerRow:4*img->w() bitsPerPixel:32];
memset([bitmap bitmapData], 0xFF, [bitmap bytesPerPlane]);
const uchar *from = img->array;