Removed exceptions from Fullscreen properties.

This commit is contained in:
the_fiddler 2007-08-05 13:51:07 +00:00
parent 972574dd2c
commit 95d5db5347
6 changed files with 16 additions and 10 deletions

View file

@ -90,7 +90,7 @@ namespace Examples.Tutorial
if ((Keyboard[0][OpenTK.Input.Keys.LeftAlt] || Keyboard[0][OpenTK.Input.Keys.RightAlt]) &&
Keyboard[0][OpenTK.Input.Keys.Enter])
{
Fullscreen = true;
Fullscreen = !Fullscreen;
}
GL.MatrixMode(Enums.MatrixMode.MODELVIEW);

View file

@ -84,8 +84,7 @@ namespace OpenTK
if (height > 0)
this.Height = height;
*/
if (mode.Fullscreen)
this.Fullscreen = true;
this.Fullscreen = mode.Fullscreen;
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
@ -135,11 +134,12 @@ namespace OpenTK
{
get
{
throw new NotImplementedException();
return false;
//throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
//throw new NotImplementedException();
}
}

View file

@ -71,7 +71,8 @@ namespace OpenTK.Platform.Windows
}
set
{
throw new NotImplementedException();
fullscreen = false;
//throw new NotImplementedException();
}
}

View file

@ -317,10 +317,12 @@ namespace OpenTK.Platform.Windows
{
get
{
throw new NotImplementedException();
return false;
//throw new NotImplementedException();
}
set
{
fullscreen = false;
throw new NotImplementedException();
}
}

View file

@ -158,7 +158,8 @@ namespace OpenTK.Platform.X11
}
set
{
throw new Exception("The method or operation is not implemented.");
//throw new Exception("The method or operation is not implemented.");
fullscreen = false;
}
}

View file

@ -334,11 +334,13 @@ namespace OpenTK.Platform.X11
{
get
{
throw new Exception("The method or operation is not implemented.");
return false;
//throw new Exception("The method or operation is not implemented.");
}
set
{
throw new Exception("The method or operation is not implemented.");
//throw new Exception("The method or operation is not implemented.");
}
}