1
0
mirror of synced 2025-02-06 14:14:22 +01:00

ui: Potentially fix issues with titlebar and cursor misalignment

This commit is contained in:
WerWolv 2021-11-28 01:17:48 +01:00
parent e074643783
commit 28805bae65
2 changed files with 3 additions and 2 deletions

View File

@ -193,7 +193,7 @@
if (!themeFollowSystem) return; if (!themeFollowSystem) return;
HKEY hkey; HKEY hkey;
if (RegOpenKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", &hkey) == ERROR_SUCCESS) { if (RegOpenKey(HKEY_CURRENT_USER, R"(Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)", &hkey) == ERROR_SUCCESS) {
DWORD value = 0; DWORD value = 0;
DWORD size = sizeof(DWORD); DWORD size = sizeof(DWORD);

View File

@ -84,7 +84,6 @@ namespace hex {
this->initGLFW(); this->initGLFW();
this->initImGui(); this->initImGui();
this->setupNativeWindow();
EventManager::subscribe<EventSettingsChanged>(this, [this]() { EventManager::subscribe<EventSettingsChanged>(this, [this]() {
{ {
@ -720,6 +719,8 @@ namespace hex {
glfwMakeContextCurrent(this->m_window); glfwMakeContextCurrent(this->m_window);
glfwSwapInterval(1); glfwSwapInterval(1);
this->setupNativeWindow();
{ {
int x = 0, y = 0; int x = 0, y = 0;
glfwGetWindowPos(this->m_window, &x, &y); glfwGetWindowPos(this->m_window, &x, &y);