Re: [PATCH v8 0/1] MR3959: uxtheme: Add ShouldSystemUseDarkMode.
30 Sep
2023
30 Sep
'23
3:04 p.m.
Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/system.c:
UnregisterUserApiHook(); return TRUE; } + +/********************************************************************** + * ShouldSystemUseDarkMode (UXTHEME.138) + * + * RETURNS + * Whether or not the system/app should use dark mode. + */ +BOOL WINAPI ShouldSystemUseDarkMode(void) +{ + DWORD system_uses_light_theme_size = sizeof(DWORD); + /* Persists between calls, in windows it might look up some internal table. */ + static DWORD system_uses_light_theme = TRUE;
You can remove the static keyword and always initialize system_uses_light_theme to TRUE. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3959#note_47268
887
Age (days ago)
887
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zhiyi Zhang (@zhiyi)