oops, need to commit this file too :(

This commit is contained in:
Bob
2010-02-20 20:34:12 +13:00
parent 165433d094
commit b519f2bace

View File

@@ -76,12 +76,12 @@ namespace OpenRa.Graphics
boldFont.FT_ALIGN = FTFontAlign.FT_ALIGN_LEFT; boldFont.FT_ALIGN = FTFontAlign.FT_ALIGN_LEFT;
} }
IGraphicsDevice CreateDevice( Assembly rendererDll, int width, int height, bool fullscreen, bool vsync ) IGraphicsDevice CreateDevice( Assembly rendererDll, int width, int height, bool windowed, bool vsync )
{ {
foreach( RendererAttribute r in rendererDll.GetCustomAttributes( typeof( RendererAttribute ), false ) ) foreach( RendererAttribute r in rendererDll.GetCustomAttributes( typeof( RendererAttribute ), false ) )
{ {
return (IGraphicsDevice)r.Type.GetConstructor( new Type[] { typeof( int ), typeof( int ), typeof( bool ), typeof( bool ) } ) return (IGraphicsDevice)r.Type.GetConstructor( new Type[] { typeof( int ), typeof( int ), typeof( bool ), typeof( bool ) } )
.Invoke( new object[] { width, height, fullscreen, vsync } ); .Invoke( new object[] { width, height, windowed, vsync } );
} }
throw new NotImplementedException(); throw new NotImplementedException();
} }
@@ -189,7 +189,7 @@ namespace OpenRa.Graphics
} }
public void DrawText(string text, int2 pos, Color c) { DrawTextInner(regularFont, text, pos, c); } public void DrawText(string text, int2 pos, Color c) { DrawTextInner(regularFont, text, pos, c); }
public void DrawText2(string text, int2 pos, Color c) { DrawTextInner(boldFont, text, pos, c); } public void DrawText2(string text, int2 pos, Color c) { DrawTextInner(boldFont, text, pos, c); }
public int2 MeasureText(string text) public int2 MeasureText(string text)
{ {