fixed cursor framerate
This commit is contained in:
@@ -50,13 +50,17 @@ namespace OpenRa.Game.Graphics
|
||||
|
||||
foreach (Region region in regions)
|
||||
region.Draw(renderer);
|
||||
cursorFrame += 0.01f;
|
||||
cursorRenderer.DrawSprite(cursor.GetSprite((int)cursorFrame), mousePos + Location - cursor.GetHotspot(), 0);
|
||||
cursorRenderer.Flush();
|
||||
|
||||
renderer.EndFrame();
|
||||
}
|
||||
|
||||
public void Tick()
|
||||
{
|
||||
cursorFrame += 0.5f;
|
||||
}
|
||||
|
||||
Region dragRegion = null;
|
||||
public void DispatchMouseInput(MouseInput mi)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user