Skip to content

Commit

Permalink
Set GLFW_SCALE_TO_MONITOR true on window creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Aug 24, 2021
1 parent d3cdfbe commit ce420ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenToolkit.GraphicsLibraryFramework/Enums/WindowHintBool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,7 @@ public enum WindowHintBool
/// for controlling sRGB rendering and a created OpenGL ES context will always have sRGB rendering enabled.
/// </summary>
SrgbCapable = 0x0002100E,

ScaleToMonitor = 0x0002200C,
}
}
2 changes: 2 additions & 0 deletions Robust.Client/Graphics/Clyde/Windowing/Glfw.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ public void WindowDestroy(WindowReg window)
GLFW.WindowHint(WindowHintString.X11ClassName, "SS14");
GLFW.WindowHint(WindowHintString.X11InstanceName, "SS14");

GLFW.WindowHint(WindowHintBool.ScaleToMonitor, true);

if (r == Renderer.OpenGL33)
{
GLFW.WindowHint(WindowHintInt.ContextVersionMajor, 3);
Expand Down

0 comments on commit ce420ac

Please sign in to comment.