--- a/GraphicsMedium.st Fri Dec 16 13:52:51 2016 +0100
+++ b/GraphicsMedium.st Fri Dec 16 14:37:58 2016 +0100
@@ -1408,7 +1408,7 @@
(not all devices care for this).
If the receiver is a pixmap, the call always returns immediately."
- |deviceDrawable mustWait sourceDepth myDepth|
+ |deviceDrawable mustWait sourceDepth|
((aDrawable graphicsDevice ~~ device)
or:[aDrawable isImage]) ifTrue:[
@@ -1417,8 +1417,9 @@
deviceDrawable := aDrawable
].
sourceDepth := deviceDrawable depth.
- myDepth := device depth.
- mustWait := async not and:[deviceDrawable isView and:[((sourceDepth ~~ 1) or:[myDepth == 1])]].
+ mustWait := async not
+ and:[deviceDrawable isView
+ and:[(sourceDepth ~~ 1) or:[device depth == 1]]].
mustWait ifTrue:[
mustWait := self catchExpose.
].