(Win32) Add Mouse Grab to menubar

This commit is contained in:
twinaphex 2015-01-15 07:44:01 +01:00
parent 6f5ee8be51
commit 0959fd2243
4 changed files with 6 additions and 2 deletions

View File

@ -322,6 +322,9 @@ static LRESULT win32_menu_loop(WPARAM wparam)
case ID_M_FULL_SCREEN:
cmd = RARCH_CMD_FULLSCREEN_TOGGLE;
break;
case ID_M_MOUSE_GRAB:
cmd = RARCH_CMD_GRAB_MOUSE_TOGGLE;
break;
case ID_M_QUIT:
do_wm_close = true;
break;

View File

@ -27,6 +27,7 @@ BEGIN
MENUITEM "Reset", ID_M_RESET
MENUITEM "Menu Toggle", ID_M_MENU_TOGGLE
MENUITEM "Pause Toggle", ID_M_PAUSE_TOGGLE
MENUITEM "Mouse Grab Toggle", ID_M_MOUSE_GRAB
END
POPUP "Window"
BEGIN

View File

@ -38,8 +38,7 @@ void menu_list_destroy(file_list_t *list)
}
end:
if (list)
file_list_free(list);
file_list_free(list);
}
void menu_list_free(menu_list_t *menu_list)

View File

@ -23,3 +23,4 @@
#define ID_M_WINDOW_SCALE_9X 40020
#define ID_M_WINDOW_SCALE_10X 40021
#define ID_M_FULL_SCREEN 40022
#define ID_M_MOUSE_GRAB 40023