Rename Renderer.Device to Renderer.Window.

This commit is contained in:
Paul Chote
2018-06-05 20:08:44 +01:00
parent 28c8089bc7
commit ab14a86d39
10 changed files with 44 additions and 44 deletions

View File

@@ -80,7 +80,7 @@ namespace OpenRA.Graphics
}
}
return Game.Renderer.Device.CreateHardwareCursor(name, new Size(dataWidth, dataHeight), data, hotspot);
return Game.Renderer.Window.CreateHardwareCursor(name, new Size(dataWidth, dataHeight), data, hotspot);
}
public void SetCursor(string cursorName)
@@ -113,13 +113,13 @@ namespace OpenRA.Graphics
void Update()
{
if (cursor == null)
Game.Renderer.Device.SetHardwareCursor(null);
Game.Renderer.Window.SetHardwareCursor(null);
else
{
if (frame >= cursor.Length)
frame = frame % cursor.Length;
Game.Renderer.Device.SetHardwareCursor(hardwareCursors[cursor.Name][frame]);
Game.Renderer.Window.SetHardwareCursor(hardwareCursors[cursor.Name][frame]);
}
}