Tweaks
This commit is contained in:
@@ -58,7 +58,7 @@ int32 CalculateDpi(HMODULE shCoreDll)
|
||||
|
||||
if (getDPIForMonitor)
|
||||
{
|
||||
HMONITOR monitor = GetPrimaryMonitorHandle(); // TODO: Use the game window monitor
|
||||
HMONITOR monitor = GetPrimaryMonitorHandle();
|
||||
|
||||
UINT x = 0, y = 0;
|
||||
HRESULT hr = getDPIForMonitor(monitor, 0, &x, &y);
|
||||
|
||||
@@ -99,7 +99,7 @@ WindowsWindow::WindowsWindow(const CreateWindowSettings& settings)
|
||||
nullptr);
|
||||
|
||||
_dpi = DefaultDPI;
|
||||
// TODO: Is this the correct way of doing this?
|
||||
|
||||
const HMODULE user32Dll = LoadLibraryW(L"user32.dll");
|
||||
if (user32Dll)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user