Oops, fixed slip in CairoGraphicsContext>>destroyCR
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 04 Apr 2016 18:47:45 +0100
changeset 74 94902e358396
parent 73 ad44e7d3a06d
child 75 e3ca2f982493
Oops, fixed slip in CairoGraphicsContext>>destroyCR Call #dcUnlockForGC: only on Windows...
CairoGraphicsContext.st
--- a/CairoGraphicsContext.st	Mon Apr 04 18:43:52 2016 +0100
+++ b/CairoGraphicsContext.st	Mon Apr 04 18:47:45 2016 +0100
@@ -976,15 +976,17 @@
         cr := nil.
         crToDestroy release.
         surfaceToDestroy release.
-        device dcUnlockForGC: gcId.
+        device isWindowsPlatform ifTrue:[
+            device dcUnlockForGC: gcId.
+        ].
         wasBlocked ifFalse:[
             OperatingSystem unblockInterrupts.
         ]    
     ].
 
     "Created: / 12-02-2016 / 16:59:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 26-02-2016 / 22:50:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified (format): / 02-04-2016 / 16:07:22 / jv"
+    "Modified: / 04-04-2016 / 18:45:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 destroyGC