1
0
mirror of synced 2024-11-14 19:17:42 +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;
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 size = sizeof(DWORD);

View File

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