FramedBox.st
changeset 6069 2e71d861428b
parent 5830 44088994b256
child 6237 ee16cb5f52c9
--- a/FramedBox.st	Sat Jan 28 18:24:44 2017 +0100
+++ b/FramedBox.st	Sat Jan 28 18:25:26 2017 +0100
@@ -565,20 +565,20 @@
     
     frame3D ifFalse:[
         frameColor ~= fgColor ifTrue:[
-            self paint:frameColor
+            gc paint:frameColor
         ].    
-        self displayRectangleX:halfSepX y:halfSepY width:w height:h.
+        gc displayRectangleX:halfSepX y:halfSepY width:w height:h.
         ^ self
     ].
 
     w := w + 1.
     h := h + 1.
 
-    self paint:lightColor.
-    self displayRectangleX:halfSepX y:halfSepY width:w height:h.
+    gc paint:lightColor.
+    gc displayRectangleX:halfSepX y:halfSepY width:w height:h.
 
-    self paint:shadowColor.
-    self displayRectangleX:halfSepX-1 y:halfSepY-1 width:w height:h.
+    gc paint:shadowColor.
+    gc displayRectangleX:halfSepX-1 y:halfSepY-1 width:w height:h.
 
     "Modified: 17.2.1997 / 11:04:34 / cg"
 !