DisplayRootView.st
changeset 7266 6b9ccc0ad0c8
parent 6986 b19cc6ab184e
child 7286 c3b4c3c664d4
child 7627 86ebf06e43a1
--- a/DisplayRootView.st	Sat Apr 02 17:07:49 2016 +0200
+++ b/DisplayRootView.st	Sat Apr 02 17:12:15 2016 +0200
@@ -221,13 +221,10 @@
 reinitialize
     "reinit after snapin"
 
-    |dev|
-
     self recreate.
     self createRootWindow.
-    dev := self graphicsDevice.
-    width := dev width.
-    height := dev height.
+    width := device width.
+    height := device height.
     realized := true.
 ! !
 
@@ -275,9 +272,6 @@
      This is done by performing an action (enabling button events of
      root window), which will fail if a window manager is running."
 
-    |device|
-
-    device := self graphicsDevice.
     device isWindowsPlatform ifTrue:[^ true].
     device class deviceErrorSignal handle:[:ex |
         ^ false.