mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
Fix _glfwSetThemeWin32
This commit is contained in:
parent
a30e29fa0a
commit
73330df28a
@ -2434,13 +2434,13 @@ void _glfwSetThemeWin32(_GLFWwindow* window, const _GLFWtheme* theme)
|
|||||||
else
|
else
|
||||||
memcpy(&newTheme, theme, sizeof(_GLFWtheme));
|
memcpy(&newTheme, theme, sizeof(_GLFWtheme));
|
||||||
|
|
||||||
if (newTheme->variation == GLFW_THEME_DEFAULT)
|
if (newTheme.variation == GLFW_THEME_DEFAULT)
|
||||||
{
|
{
|
||||||
applySystemTheme(window->win32.handle);
|
applySystemTheme(window->win32.handle);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GLFWbool darkMode = theme->variation == GLFW_THEME_DARK;
|
GLFWbool darkMode = newTheme.variation == GLFW_THEME_DARK;
|
||||||
|
|
||||||
DwmSetWindowAttribute(window->win32.handle,
|
DwmSetWindowAttribute(window->win32.handle,
|
||||||
DWMWA_USE_IMMERSIVE_DARK_MODE,
|
DWMWA_USE_IMMERSIVE_DARK_MODE,
|
||||||
|
Loading…
Reference in New Issue
Block a user