diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Copy_Surface.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Quartz_Printer.mm | 2 | ||||
| -rw-r--r-- | src/Fl_Window_shape.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_get_key_mac.cxx | 2 | ||||
| -rw-r--r-- | src/screen_xywh.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 02f1afbd8..69f9fea6c 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -185,7 +185,7 @@ void Fl_Copy_Surface::init_PDF_context(int w, int h) pdfdata = CFDataCreateMutable(NULL, 0); CGDataConsumerRef myconsumer; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 - if(CGDataConsumerCreateWithCFData != NULL) { + if (&CGDataConsumerCreateWithCFData != NULL) { myconsumer = CGDataConsumerCreateWithCFData(pdfdata); // 10.4 } else diff --git a/src/Fl_Quartz_Printer.mm b/src/Fl_Quartz_Printer.mm index fba79c5e5..a323d5844 100644 --- a/src/Fl_Quartz_Printer.mm +++ b/src/Fl_Quartz_Printer.mm @@ -240,7 +240,7 @@ int Fl_System_Printer::start_page (void) { OSStatus status = PMSessionBeginPageNoDialog(printSession, pageFormat, NULL); #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 - if ( PMSessionGetCGGraphicsContext != NULL ) { + if ( &PMSessionGetCGGraphicsContext != NULL ) { status = PMSessionGetCGGraphicsContext(printSession, &fl_gc); } else diff --git a/src/Fl_Window_shape.cxx b/src/Fl_Window_shape.cxx index 76750530b..fe635407f 100644 --- a/src/Fl_Window_shape.cxx +++ b/src/Fl_Window_shape.cxx @@ -337,7 +337,7 @@ void Fl_Window::shape(const Fl_Image* img) { void Fl_Window::draw() { if (shape_data_) { # if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 - if (shape_data_->mask && (CGContextClipToMask != NULL)) { + if (shape_data_->mask && (&CGContextClipToMask != NULL)) { CGContextClipToMask(fl_gc, CGRectMake(0,0,w(),h()), shape_data_->mask); // requires Mac OS 10.4 } CGContextSaveGState(fl_gc); diff --git a/src/Fl_get_key_mac.cxx b/src/Fl_get_key_mac.cxx index 67ea2f71b..adcf68be8 100644 --- a/src/Fl_get_key_mac.cxx +++ b/src/Fl_get_key_mac.cxx @@ -244,7 +244,7 @@ int Fl::event_key(int k) { //: returns true, if that key is pressed right now int Fl::get_key(int k) { #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 - if(CGEventSourceKeyState != NULL) { + if (&CGEventSourceKeyState != NULL) { return (int)CGEventSourceKeyState(kCGEventSourceStateCombinedSessionState, fltk2mac(k) ); } else diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index a0a18890e..f470ec3eb 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -131,7 +131,7 @@ static void screen_init() { screens[i].width = int(r.size.width); screens[i].height = int(r.size.height); //fprintf(stderr,"screen %d %dx%dx%dx%d\n",i,screens[i].x,screens[i].y,screens[i].width,screens[i].height); - if (CGDisplayScreenSize != NULL) { + if (&CGDisplayScreenSize != NULL) { CGSize s = CGDisplayScreenSize(displays[i]); // from 10.3 dpi_h[i] = screens[i].width / (s.width/25.4); dpi_v[i] = screens[i].height / (s.height/25.4); |
