public override void SetFullScreen(int width, int height, int bpp)
        {
            if (frm == null)
            {
                throw new InvalidOperationException("This DisplayWindow was created on a " +
                                                    "System.Windows.Forms.Control object, and cannot be set to full screen.");
            }


            //return;

            ScreenMode mode = ScreenMode.SelectBestMode(width, height, bpp);

            if (mode == null)
            {
                return;
            }

            mChooseWidth    = mode.Width;
            mChooseHeight   = mode.Height;
            mChooseBitDepth = mode.Bpp;

            mIsFullscreen = true;

            CreateFullScreenDisplay();
            Keyboard.ReleaseAllKeys();
        }
Exemple #2
0
        public override void SetFullScreen(int width, int height, int bpp)
        {
            if (frm == null)
            {
                throw new AgateException("This DisplayWindow was created on a " +
                                         "System.Windows.Forms.Control object, and cannot be set to full screen.");
            }

            ScreenMode mode = ScreenMode.SelectBestMode(width, height, bpp);

            mChooseWidth    = width;
            mChooseHeight   = height;
            mChooseBitDepth = bpp;

            CreateFullScreenDisplay();
            Keyboard.ReleaseAllKeys();
        }