SetFullScreen() private method

private SetFullScreen ( CarbonWindowInfo info, int &width, int &height ) : void
info CarbonWindowInfo
width int
height int
return void
コード例 #1
0
ファイル: CarbonGLNative.cs プロジェクト: asmboom/PixelFarm
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;

            int width, height;

            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            var displayBounds = mDisplayDevice.Bounds;

            bounds = new Rectangle(
                displayBounds.X,
                displayBounds.Y,
                displayBounds.Width,
                displayBounds.Height);


            //LayoutFarm.Drawing.Conv.ToRect(mDisplayDevice.Bounds);


            windowState = WindowState.Fullscreen;
        }
コード例 #2
0
        internal void SetFullscreen(AglContext context)
        {
            this.windowedBounds = this.bounds;
            int width;
            int height;

            context.SetFullScreen(this.window, out width, out height);
            this.clientRectangle.Size = new Size(width, height);
            this.bounds      = this.mDisplayDevice.Bounds;
            this.windowState = WindowState.Fullscreen;
        }
コード例 #3
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;

            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            bounds      = mDisplayDevice.Bounds;
            windowState = WindowState.Fullscreen;
        }
コード例 #4
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;
            context.SetFullScreen(window, out width, out height);

            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);

            // TODO: if we go full screen we need to make this use the device specified.
            bounds = mDisplayDevice.Bounds;
            windowState = WindowState.Fullscreen;
        }
コード例 #5
0
ファイル: CarbonGLNative.cs プロジェクト: tanis2000/FEZ
 internal void SetFullscreen(AglContext context)
 {
   this.windowedBounds = this.bounds;
   int width;
   int height;
   context.SetFullScreen(this.window, out width, out height);
   this.clientRectangle.Size = new Size(width, height);
   this.bounds = this.mDisplayDevice.Bounds;
   this.windowState = WindowState.Fullscreen;
 }
コード例 #6
0
        internal void SetFullscreen(AglContext context)
        {
            windowedBounds = bounds;
            int width, height;
            context.SetFullScreen(window, out width, out height);
            Debug.Print("Prev Size: {0}, {1}", Width, Height);
            clientRectangle.Size = new Size(width, height);
            Debug.Print("New Size: {0}, {1}", Width, Height);
            // TODO: if we go full screen we need to make this use the device specified.
            var displayBounds = mDisplayDevice.Bounds;
            bounds = new Rectangle(
                displayBounds.X,
                displayBounds.Y,
                displayBounds.Width,
                displayBounds.Height);
            //LayoutFarm.Drawing.Conv.ToRect(mDisplayDevice.Bounds);


            windowState = WindowState.Fullscreen;
        }