diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-02-02 17:47:55 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-02-02 17:47:55 +0100 |
| commit | 452a410a3ea02f58930c4b3cc5a04bbb6b3e7070 (patch) | |
| tree | d243cf51c8b20541b46ba051d646c91b5aad1825 /src/drivers/Cocoa | |
| parent | 76668c7cc11c80f337bd7d04d6adead49c8a636f (diff) | |
STR #2714: remove new shadow lint for MacOS
Diffstat (limited to 'src/drivers/Cocoa')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx index 1f189300c..8fd33743d 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx @@ -106,13 +106,13 @@ void Fl_Cocoa_Window_Driver::destroy_double_buffer() void Fl_Cocoa_Window_Driver::draw_begin() { if (!Fl_Surface_Device::surface()->driver()->has_feature(Fl_Graphics_Driver::NATIVE)) return; - CGContextRef gc = (CGContextRef)Fl_Surface_Device::surface()->driver()->gc(); + CGContextRef my_gc = (CGContextRef)Fl_Surface_Device::surface()->driver()->gc(); if (shape_data_) { # if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 if (shape_data_->mask && (&CGContextClipToMask != NULL)) { - CGContextClipToMask(gc, CGRectMake(0,0,w(),h()), shape_data_->mask); // requires Mac OS 10.4 + CGContextClipToMask(my_gc, CGRectMake(0,0,w(),h()), shape_data_->mask); // requires Mac OS 10.4 } - CGContextSaveGState(gc); + CGContextSaveGState(my_gc); # endif } } @@ -143,8 +143,8 @@ void Fl_Cocoa_Window_Driver::draw_end() } # if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 if (Fl_Surface_Device::surface()->driver()->has_feature(Fl_Graphics_Driver::NATIVE)) { - CGContextRef gc = (CGContextRef)Fl_Surface_Device::surface()->driver()->gc(); - if (shape_data_) CGContextRestoreGState(gc); + CGContextRef my_gc = (CGContextRef)Fl_Surface_Device::surface()->driver()->gc(); + if (shape_data_) CGContextRestoreGState(my_gc); } # endif } |
