mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Windows: Correct menu bar when dark mode is off
This commit is contained in:
parent
599bfed1b8
commit
e0db28899c
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <vsstyle.h>
|
||||
|
||||
#include "Windows/W32Util/UAHMenuBar.h"
|
||||
#include "Windows/W32Util/DarkMode.h"
|
||||
|
||||
static HTHEME g_menuTheme = nullptr;
|
||||
|
||||
|
@ -11,6 +12,10 @@ static HTHEME g_menuTheme = nullptr;
|
|||
// return true if handled, false to continue with normal processing in your wndproc
|
||||
bool UAHDarkModeWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *lr)
|
||||
{
|
||||
if (!IsDarkModeEnabled() && message != WM_THEMECHANGED) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (message)
|
||||
{
|
||||
case WM_UAHDRAWMENU:
|
||||
|
|
Loading…
Add table
Reference in a new issue