changeset 1950:bb4eaf02cdaf

Mac: Pass bi to _create_gc() instead of image. Needs to be NSBitmapImageRep.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 11 Jul 2019 09:34:44 +0000
parents c71e5da5b801
children e30164bc48fb
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Sat Jul 06 18:57:29 2019 +0000
+++ b/mac/dw.m	Thu Jul 11 09:34:44 2019 +0000
@@ -6295,7 +6295,7 @@
     }
     if(bi)
     {
-        id gc = _create_gc(image, flags & DW_DRAW_NOAA ? NO : YES);
+        id gc = _create_gc(bi, flags & DW_DRAW_NOAA ? NO : YES);
         [NSGraphicsContext saveGraphicsState];
         [NSGraphicsContext setCurrentContext:gc];
     }
@@ -6367,7 +6367,7 @@
     }
     if(bi)
     {
-        id gc = _create_gc(image, flags & DW_DRAW_NOAA ? NO : YES);
+        id gc = _create_gc(bi, flags & DW_DRAW_NOAA ? NO : YES);
         [NSGraphicsContext saveGraphicsState];
         [NSGraphicsContext setCurrentContext:gc];
     }
@@ -6434,7 +6434,7 @@
     }
     if(bi)
     {
-        id gc = _create_gc(image, flags & DW_DRAW_NOAA ? NO : YES);
+        id gc = _create_gc(bi, flags & DW_DRAW_NOAA ? NO : YES);
         [NSGraphicsContext saveGraphicsState];
         [NSGraphicsContext setCurrentContext:gc];
     }