Scale dockwindow size by DPI scale
For those gangstas with 4k screens ;)
This commit is contained in:
@@ -59,7 +59,10 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the default window size.
|
/// Gets the default window size.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual Vector2 DefaultSize => new Vector2(900, 580);
|
/// <remarks>
|
||||||
|
/// Scaled by the DPI, because the window should be large enough for its content on every monitor
|
||||||
|
/// </remarks>
|
||||||
|
public virtual Vector2 DefaultSize => new Vector2(900, 580) * DpiScale;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the serialization typename.
|
/// Gets the serialization typename.
|
||||||
|
|||||||
Reference in New Issue
Block a user