ui: Potentially fix issues with titlebar and cursor misalignment
This commit is contained in:
parent
e074643783
commit
28805bae65
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user