Exemple #1
0
        public void HandleFocusMessage(MyWindowFocusMessage msg)
        {
            if (msg == MyWindowFocusMessage.Activate && MyRenderProxy.RenderThread.CurrentSettings.WindowMode == MyWindowModeEnum.Fullscreen)
            {
                MyRenderProxy.RenderThread.UpdateSize(MyWindowModeEnum.FullscreenWindow);
            }

            if (msg == MyWindowFocusMessage.SetFocus && MyRenderProxy.RenderThread.CurrentSettings.WindowMode == MyWindowModeEnum.Fullscreen)
            {
                MyRenderProxy.RenderThread.UpdateSize(MyWindowModeEnum.Fullscreen);
                MyRender11.RestoreFullscreenMode();
            }
        }
Exemple #2
0
 public void HandleFocusMessage(MyWindowFocusMessage msg) { }
 public static void HandleFocusMessage(MyWindowFocusMessage msg)
 {
     m_render.HandleFocusMessage(msg);
 }
 public void HandleFocusMessage(MyWindowFocusMessage msg)
 {
 }
        public void HandleFocusMessage(MyWindowFocusMessage msg)
        {
            if (msg == MyWindowFocusMessage.Activate && MyRenderProxy.RenderThread.CurrentSettings.WindowMode == MyWindowModeEnum.Fullscreen)
            {
                MyRenderProxy.RenderThread.UpdateSize(MyWindowModeEnum.FullscreenWindow);
            }

            if (msg == MyWindowFocusMessage.SetFocus && MyRenderProxy.RenderThread.CurrentSettings.WindowMode == MyWindowModeEnum.Fullscreen)
            {
                MyRenderProxy.RenderThread.UpdateSize(MyWindowModeEnum.Fullscreen);
                MyRender11.RestoreFullscreenMode();
            }
        }