puklaus's picture

Changing to fullscreen in demos -prob

Project:The Open Toolkit library
Version:1.0-beta-3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Well, e.Key cant be Key.AltLeft(/Right) and Key.Enter(/KeypadEnter) at the same time.

Oh and when returning from fullscreen, window isnt visible (on w7 at least) so

            if (/* (e.Key == Key.AltLeft || e.Key == Key.AltRight) &&*/ (e.Key == Key.Enter || e.Key == Key.KeypadEnter))
                if (this.WindowState == WindowState.Fullscreen)
                {
                    this.WindowState = WindowState.Normal;
                    Visible = true;  // <<< Added this
                }
                else
                    this.WindowState = WindowState.Fullscreen;

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Version:1.x-dev» 0.9.x-dev
Status:open» fixed

Modified affected samples to use F11 for fullscreen mode (r2548).

the Fiddler's picture

#2

Version:0.9.x-dev» 1.0-beta-3
Status:fixed» closed

Closing issues fixed in opentk-1.0-beta-3.