Access graphicsDevice via method send instead of instVar access
authorStefan Vogel <sv@exept.de>
Wed, 19 Mar 2014 11:05:13 +0100
changeset 6342 d2a4135ecf36
parent 6341 088a633e67e6
child 6343 5747b4dbc94b
Access graphicsDevice via method send instead of instVar access
DisplayRootView.st
--- a/DisplayRootView.st	Wed Mar 19 11:04:35 2014 +0100
+++ b/DisplayRootView.st	Wed Mar 19 11:05:13 2014 +0100
@@ -162,7 +162,7 @@
     dev := self device.
     width := dev width.
     height := dev height.
-    gc createRootWindow.
+    self createRootWindow.
     realized := true.
 !
 
@@ -171,12 +171,12 @@
 
     |dev|
 
-    dev := self device.
+    dev := self graphicsDevice.
     width := dev width.
     height := dev height.
-    gc createRootWindow.
+    self createRootWindow.
     realized := true.
-    gcId := nil.
+    self recreate.
 ! !
 
 !DisplayRootView methodsFor:'queries'!
@@ -226,6 +226,6 @@
 !DisplayRootView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/DisplayRootView.st,v 1.39 2014-02-26 14:11:42 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/DisplayRootView.st,v 1.40 2014-03-19 10:05:13 stefan Exp $'
 ! !