mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
small fix and increased version number to 2.0.4
This commit is contained in:
parent
c75b3578a7
commit
ef2365e81a
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <QtGlobal>
|
||||
|
||||
#define CHATTERINO_VERSION "2.0.3"
|
||||
#define CHATTERINO_VERSION "2.0.4"
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#define CHATTERINO_OS "win"
|
||||
|
|
|
@ -448,10 +448,10 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||
case WM_SHOWWINDOW: {
|
||||
// if (IsWindows8Point1OrGreater()) {
|
||||
|
||||
HINSTANCE shcore = LoadLibrary(L"Shcore.dll");
|
||||
static HINSTANCE shcore = LoadLibrary(L"Shcore.dll");
|
||||
if (shcore != nullptr) {
|
||||
if (auto getDpiForMonitor =
|
||||
(GetDpiForMonitor_)GetProcAddress(shcore, "GetDpiForMonitor")) {
|
||||
GetDpiForMonitor_(GetProcAddress(shcore, "GetDpiForMonitor"))) {
|
||||
HMONITOR monitor = MonitorFromWindow(msg->hwnd, MONITOR_DEFAULTTONEAREST);
|
||||
|
||||
UINT xScale, yScale;
|
||||
|
@ -466,6 +466,7 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||
this->updateScale();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
case WM_NCCALCSIZE: {
|
||||
|
|
Loading…
Reference in a new issue