@@ -854,7 +854,8 @@ void MCMutableImageRep::put_brush(int2 x, int2 y, MCBrush *bmptr)
854854 MCGContextRef t_context = nil;
855855 /* UNCHECKED */ MCGContextCreateWithRaster (m_draw_mask, t_context);
856856 MCGRectangle t_dst = MCGRectangleMake (x, y, bwidth, bheight);
857- MCGContextDrawImage (t_context, bmptr->image , t_dst, kMCGImageFilterNearest );
857+ // MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
858+ MCGContextDrawImage (t_context, bmptr->image , t_dst, kMCGImageFilterNone );
858859 MCGContextRelease (t_context);
859860}
860861
@@ -1192,7 +1193,8 @@ void MCMutableImageRep::apply_fill_paint(MCGContextRef p_context, MCPatternRef p
11921193 else if (p_pattern == nil)
11931194 MCGContextSetFillRGBAColor (p_context, p_color.red / 65535.0 , p_color.green / 65535.0 , p_color.blue / 65535.0 , 1.0 );
11941195 else
1195- MCGContextSetFillPattern (p_context, p_pattern->image , MCGAffineTransformMakeScale (1.0 / p_pattern->scale , 1.0 / p_pattern->scale ), kMCGImageFilterNearest );
1196+ // MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
1197+ MCGContextSetFillPattern (p_context, p_pattern->image , MCGAffineTransformMakeScale (1.0 / p_pattern->scale , 1.0 / p_pattern->scale ), kMCGImageFilterNone );
11961198}
11971199
11981200void MCMutableImageRep::apply_stroke_paint (MCGContextRef p_context, MCPatternRef p_pattern, const MCColor &p_color)
@@ -1202,7 +1204,8 @@ void MCMutableImageRep::apply_stroke_paint(MCGContextRef p_context, MCPatternRef
12021204 else if (p_pattern == nil)
12031205 MCGContextSetStrokeRGBAColor (p_context, p_color.red / 65535.0 , p_color.green / 65535.0 , p_color.blue / 65535.0 , 1.0 );
12041206 else
1205- MCGContextSetStrokePattern (p_context, p_pattern->image , MCGAffineTransformMakeScale (1.0 / p_pattern->scale , 1.0 / p_pattern->scale ), kMCGImageFilterNearest );
1207+ // MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
1208+ MCGContextSetStrokePattern (p_context, p_pattern->image , MCGAffineTransformMakeScale (1.0 / p_pattern->scale , 1.0 / p_pattern->scale ), kMCGImageFilterNone );
12061209}
12071210
12081211void MCMutableImageRep::fill_path (MCGPathRef p_path)
@@ -1429,7 +1432,8 @@ void MCMutableImageRep::fillimage(const MCRectangle &drect)
14291432 /* UNCHECKED */ MCGContextCreateWithPixels (m_bitmap->width , m_bitmap->height , m_bitmap->stride , m_bitmap->data , true , t_context);
14301433
14311434 apply_fill_paint (t_context, MCbrushpattern, MCbrushcolor);
1432- MCGContextDrawPixels (t_context, m_draw_mask, MCGRectangleMake (0 , 0 , m_bitmap->width , m_bitmap->height ), kMCGImageFilterNearest );
1435+ // MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
1436+ MCGContextDrawPixels (t_context, m_draw_mask, MCGRectangleMake (0 , 0 , m_bitmap->width , m_bitmap->height ), kMCGImageFilterNone );
14331437
14341438 MCGContextRelease (t_context);
14351439
@@ -1443,7 +1447,8 @@ void MCMutableImageRep::eraseimage(const MCRectangle &drect)
14431447
14441448 MCGContextSetBlendMode (t_context, kMCGBlendModeClear );
14451449 MCGContextSetFillRGBAColor (t_context, 1 , 1 , 1 , 1 );
1446- MCGContextDrawPixels (t_context, m_draw_mask, MCGRectangleMake (0 , 0 , m_bitmap->width , m_bitmap->height ), kMCGImageFilterNearest );
1450+ // MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
1451+ MCGContextDrawPixels (t_context, m_draw_mask, MCGRectangleMake (0 , 0 , m_bitmap->width , m_bitmap->height ), kMCGImageFilterNone );
14471452
14481453 MCGContextRelease (t_context);
14491454
0 commit comments