@@ -35,8 +35,6 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
3535#include " graphicscontext.h"
3636#include " graphics_util.h"
3737
38- #include " stacktile.h"
39-
4038// //////////////////////////////////////////////////////////////////////////////
4139
4240bool MCImage::get_rep_and_transform (MCImageRep *&r_rep, bool &r_has_transform, MCGAffineTransform &r_transform)
@@ -153,9 +151,7 @@ void MCImage::drawme(MCDC *dc, int2 sx, int2 sy, uint2 sw, uint2 sh, int2 dx, in
153151
154152 // IM-2014-01-31: [[ HiDPI ]] Get the appropriate image for the combined
155153 // context device & image transforms
156- MCStackTileMainThreadLock ();
157154 t_success = t_rep->LockImageFrame (currentframe, t_device_scale, t_frame);
158- MCStackTileMainThreadUnlock ();
159155 if (t_success)
160156 {
161157 MCImageDescriptor t_image;
@@ -209,14 +205,11 @@ void MCImage::drawme(MCDC *dc, int2 sx, int2 sy, uint2 sw, uint2 sh, int2 dx, in
209205 drawnodata (dc, drect, sw, sh, dx, dy, dw, dh);
210206 }
211207
212- MCStackTileMainThreadLock ();
213208 t_rep->UnlockImageFrame (currentframe, t_frame);
214- MCStackTileMainThreadUnlock ();
215209 }
216210
217211 if (state & CS_DO_START )
218212 {
219- MCStackTileMainThreadLock ();
220213 MCGImageFrame *t_frame = nil;
221214 if (m_rep->LockImageFrame (currentframe, getdevicescale (), t_frame))
222215 {
@@ -225,7 +218,6 @@ void MCImage::drawme(MCDC *dc, int2 sx, int2 sy, uint2 sw, uint2 sh, int2 dx, in
225218
226219 state &= ~CS_DO_START ;
227220 }
228- MCStackTileMainThreadUnlock ();
229221 }
230222 }
231223 else if (filename != nil)
0 commit comments