diff --git a/desmume/src/windows/palView.c b/desmume/src/windows/palView.c index c7133c934..f4ccc3b3c 100644 --- a/desmume/src/windows/palView.c +++ b/desmume/src/windows/palView.c @@ -27,7 +27,7 @@ ////////////////////////////////////////////////////////////////////////////// -LRESULT PalView_OnPaint(u16 * adr, u16 num, HWND hwnd, WPARAM wParam, LPARAM lParam) +LRESULT PalView_OnPaint(const u16 * adr, u16 num, HWND hwnd, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; @@ -156,6 +156,7 @@ BOOL CALLBACK PalView_Proc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPara case IDC_PAL_SELECT : switch(HIWORD(wParam)) { + case CBN_SELCHANGE : case CBN_CLOSEUP : { u32 sel = SendMessage(GetDlgItem(hwnd, IDC_PAL_SELECT), CB_GETCURSEL, 0, 0); diff --git a/desmume/src/windows/tileView.c b/desmume/src/windows/tileView.c index 5df66a5f0..428ef000d 100644 --- a/desmume/src/windows/tileView.c +++ b/desmume/src/windows/tileView.c @@ -475,6 +475,7 @@ BOOL CALLBACK TileView_Proc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar case IDC_MEM_SELECT : switch(HIWORD(wParam)) { + case CBN_SELCHANGE : case CBN_CLOSEUP : { u32 sel = SendMessage(GetDlgItem(hwnd, IDC_MEM_SELECT), CB_GETCURSEL, 0, 0); @@ -527,6 +528,7 @@ BOOL CALLBACK TileView_Proc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar case IDC_PAL_SELECT : switch(HIWORD(wParam)) { + case CBN_SELCHANGE : case CBN_CLOSEUP : { u32 sel = SendMessage(GetDlgItem(hwnd, IDC_PAL_SELECT), CB_GETCURSEL, 0, 0);