Overhaul cursor double setting.

This commit is contained in:
Paul Chote
2019-12-08 11:08:06 +00:00
committed by teinarss
parent 010fafc6d3
commit b0c65c5eb9
8 changed files with 48 additions and 34 deletions

View File

@@ -277,6 +277,14 @@ namespace OpenRA.Platforms.Default
hotspot *= 2;
}
// Scale all but the "default" cursor if requested by the player
if (Game.Settings.Graphics.CursorDouble && name != "default")
{
data = DoublePixelData(data, size);
size = new Size(2 * size.Width, 2 * size.Height);
hotspot *= 2;
}
return new Sdl2HardwareCursor(size, data, hotspot);
}
catch (Exception ex)