Mercurial > mplayer.hg
changeset 20211:26867dede11c
as per request, fullscreen and mute options have been added to the context menus.
author | vayne |
---|---|
date | Sat, 14 Oct 2006 20:50:08 +0000 |
parents | 409f808489bf |
children | ac72ae437e30 |
files | Gui/win32/dialogs.h Gui/win32/gui.c |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/win32/dialogs.h Sat Oct 14 18:00:26 2006 +0000 +++ b/Gui/win32/dialogs.h Sat Oct 14 20:50:08 2006 +0000 @@ -120,6 +120,8 @@ #define ID_ASPECT4 86 #define ID_SUBWINDOW 87 #define ID_TIMER 88 +#define ID_MUTE 89 +#define ID_FULLSCREEN 90 /* gtk emulation */ #define GTK_MB_FATAL 0x1
--- a/Gui/win32/gui.c Sat Oct 14 18:00:26 2006 +0000 +++ b/Gui/win32/gui.c Sat Oct 14 20:50:08 2006 +0000 @@ -445,6 +445,12 @@ display_chapterselwindow(gui); break; #endif + case ID_FULLSCREEN: + mp_input_queue_cmd(mp_input_parse_cmd("vo_fullscreen")); + break; + case ID_MUTE: + mp_input_queue_cmd(mp_input_parse_cmd("mute")); + break; case ID_ASPECT1: mp_input_queue_cmd(mp_input_parse_cmd("switch_ratio 1.777777")); break; @@ -950,6 +956,9 @@ case IDURL_OPEN: display_openurlwindow(gui, 0); break; + case ID_MUTE: + mp_input_queue_cmd(mp_input_parse_cmd("mute")); + break; #ifdef USE_SUB case IDSUBTITLE_OPEN: display_opensubtitlewindow(gui); @@ -1208,6 +1217,8 @@ AppendMenu(gui->trayplaybackmenu, MF_STRING, ID_NTRACK, "Next Track"); AppendMenu(gui->trayplaybackmenu, MF_STRING, ID_SEEKF, "Seek Forwards"); AppendMenu(gui->traymenu, MF_SEPARATOR, 0, 0); + AppendMenu(gui->traymenu, MF_STRING, ID_MUTE, "Toggle Mute"); + AppendMenu(gui->traymenu, MF_SEPARATOR, 0, 0); #ifdef USE_SUB AppendMenu(gui->traymenu, MF_STRING, IDSUBTITLE_OPEN, "Open Subtitle"); #endif @@ -1237,6 +1248,9 @@ AppendMenu(gui->submenu, MF_STRING, ID_NTRACK, "Next Track"); AppendMenu(gui->submenu, MF_STRING, ID_SEEKF, "Seek Forwards"); AppendMenu(gui->submenu, MF_SEPARATOR, 0, 0); + AppendMenu(gui->submenu, MF_STRING, ID_FULLSCREEN, "Toggle Fullscreen"); + AppendMenu(gui->submenu, MF_STRING, ID_MUTE, "Toggle Mute"); + AppendMenu(gui->submenu, MF_SEPARATOR, 0, 0); AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->aspectmenu, "Aspect Ratio"); AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->subtitlemenu, "Subtitle Options"); AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->dvdmenu, "DVD Options");