Change ClientFrom/ToScreen to PointFrom/ToScreen

Fix #67
This commit is contained in:
stefnotch
2020-12-29 18:10:26 +01:00
parent da389eea03
commit 65ab9cac50
8 changed files with 20 additions and 20 deletions

View File

@@ -232,15 +232,15 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public override Vector2 ScreenToClient(Vector2 location)
public override Vector2 PointFromScreen(Vector2 location)
{
return _window.ScreenToClient(location) / Platform.DpiScale;
return _window.ScreenToClient(location) / _window._dpiScale;
}
/// <inheritdoc />
public override Vector2 ClientToScreen(Vector2 location)
public override Vector2 PointToScreen(Vector2 location)
{
return _window.ClientToScreen(location);
return _window.ClientToScreen(location * _window._dpiScale);
}
/// <inheritdoc />