       if (result != null)
         @view.processResult(result)
       @showView()
+
+  isCurrentView: (view) =>
+    return @view == view
+
+  setSize:(size) ->
+    console.log("Get contexts")
+    switch size
+      when "large"
+        @screenWidth = @screenHeight = 768
+        @controlHeight = 400
+        #Screen.SCALE = 6
+      when "normal"
+        @screenWidth = @screenHeight = 512
+        @controlHeight = 400
+        #Screen.SCALE = 4
+      when "small"
+        @screenWidth = @screenHeight = 256
+        @controlHeight = 200
+        #Screen.SCALE = 2
+      else return
+    @controlWidth = Math.floor(@controlHeight * 1.2)
+    $("#screenID").width(@screenWidth).height(@screenHeight);
+    $("#controlID").width(@controlWidth).height(@controlHeight);
+    @view?.draw()
+
+
 
   getScreen: () =>
     @screen

    }
    @scene.addView @


    # ----------------------------- Rendering Rewrite END
    #

    #
    # ----------------------------- Existing Game Lifecycle START
    @stack = new Array()
    @buttonGrid = new ButtonGrid(ctxControl, this)
    @playMusic(Data.splashMusic)
    splashView = new SplashView(this)
    @setView(splashView)
    $(window).keydown(@windowKeyPress)
    @buttonGrid.draw()
    # ----------------------------- Existing Game Lifecycle END
    #

  # SceneView implementation
  # -----------------------------------------------------------------------------

    confirm = new ConfirmView(this, icon, title, text, yesResult, noResult)
    @pushView(confirm)

# -----------------------------------------------------------------------------