Allow custom/multiple cursor palettes

This commit is contained in:
Paul Chote
2010-07-23 14:49:45 +12:00
parent 93e629584b
commit 9ebdef043c
6 changed files with 16 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ namespace OpenRA.Graphics
var cursorName = Widget.RootWidget.GetCursorOuter(mousePos) ?? Game.controller.ChooseCursor( world );
var c = new Cursor(cursorName);
cursorRenderer.DrawSprite(c.GetSprite((int)cursorFrame), mousePos + Location - c.GetHotspot(), "cursor");
c.Draw((int)cursorFrame, mousePos + Location);
Timer.Time( "cursors: {0}" );
renderer.RgbaSpriteRenderer.Flush();