mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix handling of autoselected interface scaling by client
This commit is contained in:
@@ -48,7 +48,7 @@ void CursorHardware::setVisible(bool on)
|
||||
|
||||
void CursorHardware::setImage(std::shared_ptr<IImage> image, const Point & pivotOffset)
|
||||
{
|
||||
int videoScalingSettings = settings["video"]["resolution"]["scaling"].Integer();
|
||||
int videoScalingSettings = GH.screenHandler().getInterfaceScalingPercentage();
|
||||
float cursorScalingSettings = settings["video"]["cursorScalingFactor"].Float();
|
||||
int cursorScalingPercent = videoScalingSettings * cursorScalingSettings;
|
||||
Point cursorDimensions = image->dimensions() * GH.screenHandler().getScalingFactor();
|
||||
|
||||
Reference in New Issue
Block a user