diff options
| author | Manolo Gouy <Manolo> | 2015-07-15 21:47:39 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-07-15 21:47:39 +0000 |
| commit | 7c0c17a45256953fd487865a6c5cd91e5b5f94d0 (patch) | |
| tree | 77ffdba64deb132959640d7eb1242617d4274921 /src | |
| parent | 3283aacf9864201fce65d7122730652e67b11304 (diff) | |
Preparing for Mac OS 10.11 'El Capitan':
change in rect_to_NSBitmapImageRep().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index dee4e1fea..82680d4db 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4219,6 +4219,8 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y, NSBitmapImageRep *childbitmap = rect_to_NSBitmapImageRep(sub, clip.origin.x - sub->x(), win->h() - clip.origin.y - sub->y() - clip.size.height, clip.size.width, clip.size.height); if (childbitmap) { + // if bitmap is high res and childbitmap is not, childbitmap must be rescaled + if ([bitmap pixelsWide] > w && [childbitmap pixelsWide] == clip.size.width) childbitmap = scale_nsbitmapimagerep(childbitmap, 2); if ( ([bitmap bitmapFormat] & NSAlphaFirstBitmapFormat) && !([childbitmap bitmapFormat] & NSAlphaFirstBitmapFormat) ) { // bitmap is ARGB and childbitmap is RGBA --> convert childbitmap to ARGB too uchar *b = [childbitmap bitmapData]; @@ -4231,8 +4233,6 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y, } } } - // if bitmap is high res and childbitmap is not, childbitmap must be rescaled - if ([bitmap pixelsWide] > w && [childbitmap pixelsWide] == clip.size.width) childbitmap = scale_nsbitmapimagerep(childbitmap, 2); write_bitmap_inside(bitmap, w, childbitmap, clip.origin.x - x, win->h() - clip.origin.y - clip.size.height - y ); } |
