allow feedback on window size; ask glfw how big a window we *actually* got.

This commit is contained in:
Chris Forbes
2010-02-18 08:18:46 +13:00
parent ecb92c45b6
commit a6d36fcb9a
4 changed files with 14 additions and 2 deletions

View File

@@ -49,6 +49,8 @@ namespace OpenRa.Graphics
SpriteRenderer rgbaRenderer;
Sprite textSprite;
public Size Resolution { get { return device.WindowSize; } }
public Renderer(Size resolution, bool windowed)
{
device = CreateDevice( Assembly.LoadFile( Path.GetFullPath( "OpenRa.Gl.dll" ) ), resolution.Width, resolution.Height, windowed, false );