From cfcb861ad479c850bdeb0d280d432d5a9e46ad10 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Apr 2008 21:32:43 +0000 Subject: [PATCH] * Tests/GameWindowStates.cs: Added current status to, and reduced font size for instructions. --- Source/Examples/Tests/GameWindowStates.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/Examples/Tests/GameWindowStates.cs b/Source/Examples/Tests/GameWindowStates.cs index 26f974b8..cf6d07cb 100644 --- a/Source/Examples/Tests/GameWindowStates.cs +++ b/Source/Examples/Tests/GameWindowStates.cs @@ -18,7 +18,7 @@ namespace Examples.Tests [Example("GameWindow states.", ExampleCategory.Test)] public class GameWindowStates : GameWindow { - TextureFont font = new TextureFont(new Font(FontFamily.GenericSansSerif, 20.0f)); + TextureFont font = new TextureFont(new Font(FontFamily.GenericSansSerif, 16.0f)); TextPrinter printer = new TextPrinter(); public GameWindowStates() @@ -77,8 +77,13 @@ namespace Examples.Tests printer.Begin(); printer.Draw("Instructions:", font); GL.Translate(0, font.Height, 0); - printer.Draw("1 - cycle through window styles.", font); GL.Translate(0, font.Height, 0); - printer.Draw("2 - cycle through window borders.", font); + printer.Draw(String.Format("1 - cycle through window styles (current: {0}).", this.WindowState), font); + GL.Translate(0, font.Height, 0); + printer.Draw(String.Format("2 - cycle through window borders (current: {0}).", this.WindowBorder), font); + GL.Translate(0, font.Height, 0); + printer.Draw(String.Format("3 - toggle fullscreen (current: {0}).", + this.WindowState == WindowState.Fullscreen ? "enabled" : "disabled"), font); + printer.End();