diff options
| author | Manolo Gouy <Manolo> | 2014-11-26 20:42:08 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-11-26 20:42:08 +0000 |
| commit | a48249523663dc0bc3a2d249a5e51166841d7b2c (patch) | |
| tree | 4865b1dcf798ecadc1df70251ef154f9408a613f /src | |
| parent | 3e399aa704ffb81c07f6998151039979a158b8a2 (diff) | |
Corrected case when using retina display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -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 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); |
