small fix and increased version number to 2.0.4
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#define CHATTERINO_VERSION "2.0.3"
|
#define CHATTERINO_VERSION "2.0.4"
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
#define CHATTERINO_OS "win"
|
#define CHATTERINO_OS "win"
|
||||||
|
|||||||
@@ -448,10 +448,10 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||||||
case WM_SHOWWINDOW: {
|
case WM_SHOWWINDOW: {
|
||||||
// if (IsWindows8Point1OrGreater()) {
|
// if (IsWindows8Point1OrGreater()) {
|
||||||
|
|
||||||
HINSTANCE shcore = LoadLibrary(L"Shcore.dll");
|
static HINSTANCE shcore = LoadLibrary(L"Shcore.dll");
|
||||||
if (shcore != nullptr) {
|
if (shcore != nullptr) {
|
||||||
if (auto getDpiForMonitor =
|
if (auto getDpiForMonitor =
|
||||||
(GetDpiForMonitor_)GetProcAddress(shcore, "GetDpiForMonitor")) {
|
GetDpiForMonitor_(GetProcAddress(shcore, "GetDpiForMonitor"))) {
|
||||||
HMONITOR monitor = MonitorFromWindow(msg->hwnd, MONITOR_DEFAULTTONEAREST);
|
HMONITOR monitor = MonitorFromWindow(msg->hwnd, MONITOR_DEFAULTTONEAREST);
|
||||||
|
|
||||||
UINT xScale, yScale;
|
UINT xScale, yScale;
|
||||||
@@ -466,6 +466,7 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||||||
this->updateScale();
|
this->updateScale();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case WM_NCCALCSIZE: {
|
case WM_NCCALCSIZE: {
|
||||||
|
|||||||
Reference in New Issue
Block a user