diff options
| -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 25050d3b7..060fa6e08 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3521,7 +3521,7 @@ CGImageRef Fl_X::CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, i // CFRelease the returned CGImageRef after use { CGImageRef img; - if (fl_mac_os_version >= 100500) { + if (fl_mac_os_version >= 100600) { // crashes with 10.5 NSBitmapImageRep *bitmap = rect_to_NSBitmapImageRep(win, x, y, w, h); img = (CGImageRef)[bitmap performSelector:@selector(CGImage)]; // requires Mac OS 10.5 CGImageRetain(img); |
