Skip to content

Commit

Permalink
fix: set_theme_for_hwnd always resulting dark
Browse files Browse the repository at this point in the history
on Windows
  • Loading branch information
Legend-Master committed Sep 20, 2024
1 parent 5a9c37f commit 3bf5569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ unsafe extern "system" fn menu_subclass_proc(
match msg {
MENU_UPDATE_THEME if uidsubclass == MENU_SUBCLASS_ID => {
let menu = obj_from_dwrefdata::<Menu>(dwrefdata);
let theme: MenuTheme = std::mem::transmute(wparam);
let theme: MenuTheme = std::mem::transmute(lparam);
menu.hwnds.insert(hwnd as _, theme);
0
}
Expand Down

0 comments on commit 3bf5569

Please sign in to comment.