DisplayRootView.st
branchjv
changeset 7286 c3b4c3c664d4
parent 7158 ce64e30ecf54
parent 7266 6b9ccc0ad0c8
child 7287 1e2a3258dd8a
--- a/DisplayRootView.st	Sun Apr 03 16:05:41 2016 +0100
+++ b/DisplayRootView.st	Sun Apr 03 17:09:29 2016 +0100
@@ -240,13 +240,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.
 ! !
 
@@ -294,9 +291,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.