From a48249523663dc0bc3a2d249a5e51166841d7b2c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 26 Nov 2014 20:42:08 +0000 Subject: [PATCH] Corrected case when using retina display. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index e940f51fa..0f310c98d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3881,7 +3881,7 @@ static CGImageRef GL_rect_to_CGImage_10_5(Fl_Window *win, int x, int y, int w, i if (!pi) return NULL; Fl_RGB_Image *img = pi->rectangle_capture(win, x, y, w, h); CGColorSpaceRef cSpace = CGColorSpaceCreateDeviceRGB(); - CGDataProviderRef provider = CGDataProviderCreateWithData(img, img->array, img->ld() * h, imgProviderReleaseData); + CGDataProviderRef provider = CGDataProviderCreateWithData(img, img->array, img->ld() * img->h(), imgProviderReleaseData); CGImageRef image = CGImageCreate(img->w(), img->h(), 8, 24, img->ld(), cSpace, (CGBitmapInfo)(kCGImageAlphaNone), provider, NULL, false, kCGRenderingIntentDefault);