Restore cursor doubling for "default" cursor.

This commit is contained in:
Paul Chote
2020-01-19 00:18:04 +00:00
committed by Matthias Mailänder
parent f7e5111123
commit 370f7a44fa
3 changed files with 16 additions and 16 deletions

View File

@@ -188,7 +188,7 @@ namespace OpenRA.Graphics
return;
// Render cursor in software
var doubleCursor = graphicSettings.CursorDouble && cursor.Name != "default";
var doubleCursor = graphicSettings.CursorDouble;
var cursorSprite = cursor.Sprites[frame % cursor.Length];
var cursorSize = doubleCursor ? 2.0f * cursorSprite.Size : cursorSprite.Size;
var mousePos = isLocked ? lockedPosition : Viewport.LastMousePos;
@@ -266,7 +266,7 @@ namespace OpenRA.Graphics
}
}
return Game.Renderer.Window.CreateHardwareCursor(name, new Size(newWidth, newHeight), rgbaData, hotspot, graphicSettings.CursorDouble && cursor.Name != "default");
return Game.Renderer.Window.CreateHardwareCursor(name, new Size(newWidth, newHeight), rgbaData, hotspot, graphicSettings.CursorDouble);
}
void ClearHardwareCursors()

View File

@@ -131,13 +131,6 @@ Container@SETTINGS_PANEL:
Height: 20
Font: Regular
Text: Use Hardware Cursors
Checkbox@CURSORDOUBLE_CHECKBOX:
X: 310
Y: 75
Width: 200
Height: 20
Font: Regular
Text: Increase Command Cursor Size
Label@VIDEO_DESC:
Y: 97
Width: PARENT_RIGHT
@@ -225,6 +218,13 @@ Container@SETTINGS_PANEL:
Width: 175
Height: 25
Font: Regular
Checkbox@CURSORDOUBLE_CHECKBOX:
X: 15
Y: 243
Width: 200
Height: 20
Font: Regular
Text: Increase Cursor Size
Label@STATUS_BARS:
X: 250
Y: 240

View File

@@ -145,13 +145,6 @@ Background@SETTINGS_PANEL:
Height: 20
Font: Regular
Text: Use Hardware Cursors
Checkbox@CURSORDOUBLE_CHECKBOX:
X: 310
Y: 75
Width: 200
Height: 20
Font: Regular
Text: Increase Command Cursor Size
Label@VIDEO_DESC:
Y: 97
Width: PARENT_RIGHT
@@ -246,6 +239,13 @@ Background@SETTINGS_PANEL:
Height: 25
Text: Status Bars:
Align: Right
Checkbox@CURSORDOUBLE_CHECKBOX:
X: 15
Y: 243
Width: 200
Height: 20
Font: Regular
Text: Increase Cursor Size
DropDownButton@STATUS_BAR_DROPDOWN:
X: 400
Y: 240