HiDPI commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef USEWINSDK
|
||||
#include "windows.h"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
static bool tryHandleDpiChangedMessage(void *message, int &dpi)
|
||||
{
|
||||
MSG *msg = reinterpret_cast<MSG *>(message);
|
||||
|
||||
// WM_DPICHANGED
|
||||
if (msg->message == 0x02E0) {
|
||||
dpi = HIWORD(msg->wParam);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user