Form.st
branchjv
changeset 7765 b8189ae681df
parent 7715 925b859e1758
parent 7751 b264b5ca7e35
child 8420 76e39223f5ab
--- a/Form.st	Thu Dec 15 20:11:12 2016 +0000
+++ b/Form.st	Sun Dec 18 12:12:59 2016 +0000
@@ -1518,21 +1518,23 @@
     "stop server from sending exposure events for Forms -
      (will fill up stream-queue on some stupid (i.e. sco) systems"
 
+    |gcId|
+
     "/ depth-1 forms draw differently ...
-
     depth == 1 ifTrue:[
-	|fg bg|
-	self foreground isNil ifTrue:[
-	    fg := Color colorId:1.
+        |fg bg|
+        self foreground isNil ifTrue:[
+            fg := Color colorId:1.
         ].
-	self background isNil ifTrue:[
-	    bg := Color colorId:0
-	].
-	"nil colors will not be set"
-	self setPaint:fg on:bg.
+        self background isNil ifTrue:[
+            bg := Color colorId:0
+        ].
+        "nil colors will not be set"
+        self setPaint:fg on:bg.
     ].
-    super initGC.
-    self setGraphicsExposures:false
+    gcId := super initGC.
+    self setGraphicsExposures:false.
+    ^ gcId.
 
     "Modified: 17.7.1996 / 13:21:24 / cg"
 !