[Vm-dev] [commit][3486] JMM - iOS VM problems with dragging a morph
and PasteUpMorph >>flashRects:color:, Javier Diaz-Reinoso
commits at squeakvm.org
commits at squeakvm.org
Sat Nov 7 20:04:20 UTC 2015
Revision: 3486
Author: johnmci
Date: 2015-11-07 12:04:18 -0800 (Sat, 07 Nov 2015)
Log Message:
-----------
JMM - iOS VM problems with dragging a morph and PasteUpMorph>>flashRects:color:, Javier Diaz-Reinoso
Modified Paths:
--------------
branches/Cog/build.macos32x86/squeak.cog.spur/SqueakCogSpur32x86.xcworkspace/xcuserdata/johnmci.xcuserdatad/UserInterfaceState.xcuserstate
branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakScreenAndWindow.m
Modified: branches/Cog/build.macos32x86/squeak.cog.spur/SqueakCogSpur32x86.xcworkspace/xcuserdata/johnmci.xcuserdatad/UserInterfaceState.xcuserstate
===================================================================
(Binary files differ)
Modified: branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakScreenAndWindow.m
===================================================================
--- branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakScreenAndWindow.m 2015-11-05 20:53:44 UTC (rev 3485)
+++ branches/Cog/platforms/iOS/vm/Common/Classes/sqSqueakScreenAndWindow.m 2015-11-07 20:04:18 UTC (rev 3486)
@@ -120,10 +120,15 @@
[[self getMainView] preDrawThelayers];
-
- dispatch_async(dispatch_get_main_queue(), ^{
- [[self getMainView] drawThelayers];
- });
+ //SQK-24
+ //javier_diaz_r at mac.com iOS VM problems with dragging a morph and PasteUpMorph>>flashRects:color:
+ if ([NSThread isMainThread]) {
+ [[self getMainView] drawThelayers];
+ } else {
+ dispatch_async(dispatch_get_main_queue(), ^{ //note try sync not async, I wonder if that would be an issue?
+ [[self getMainView] drawThelayers];
+ });
+ }
}
- (void) ioForceDisplayUpdate {
More information about the Vm-dev
mailing list