1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

added -rootwin support to vo_directx

updated all man pages except chinese
also added mention of vo_quartz's rootwin to man pages where it was missing


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13091 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
joey 2004-08-22 18:57:45 +00:00
parent 1b8e3babb8
commit 66dd2d906d
8 changed files with 27 additions and 14 deletions

View File

@ -2061,7 +2061,8 @@ Momentan nur unterst
.B \-rootwin
Spielt den Film im Root-Fenster (dem Desktophintergrund) ab.
Desktophintergrundbilder können den Film allerdings verdecken.
Funktioniert nur mit den x11-, xv-, xmga- und xvidix-Videoausgabetreibern.
Funktioniert nur mit den x11-, xv-, xmga-, xvidix-, quartz- und
directx-Videoausgabetreibern.
.TP
.B \-saturation <\-100\-100>
Passt die Sättigung des Videosignals an (Standard: 0).

View File

@ -1989,7 +1989,7 @@ Currently only supported by \-vo directx combined with the \-vm option.
.B \-rootwin
Play movie in the root window (desktop background).
Desktop background images may cover the movie window, though.
Only works with the x11, xv, xmga, xvidix and quartz video output drivers.
Only works with the x11, xv, xmga, xvidix, quartz and directx video output drivers.
.TP
.B \-saturation <-100\-100>
Adjust the saturation of the video signal (default: 0).

View File

@ -2018,10 +2018,10 @@ Establece la frecuencia de refresco del monitor en Hz.
Actualmente solo está soportado por \-vo directx combinado con la opción
\-vm.
.TP
.B \-rootwin (X11 solamente)
.B \-rootwin
Reproduce la película en la ventana raíz (fondo de escritorio) en lugar
de abrir una nueva.
Funciona solo con los controladores de x11, xv, xmga y xvidix.
Funciona solo con los controladores de x11, xv, xmga, xvidix, quartz y directx.
.TP
.B \-saturation <-100\-100>
Ajusta la saturación de la salida de video (por defecto: 0).

View File

@ -2075,7 +2075,8 @@ L'intervalle d
.B \-rootwin
Joue le film dans la fenêtre root (le fond du bureau) au lieu d'en ouvrir
une nouvelle.
Cette option ne fonctionne qu'avec les pilotes x11, xv, xmga et xvidix.
Cette option ne fonctionne qu'avec les pilotes x11, xv, xmga, xvidix, quartz et
directx.
.TP
.B \-saturation <-100\-100>
Ajuste la saturation du signal vidéo (0 par défaut).

View File

@ -1750,7 +1750,7 @@ A megadott tartom
.B \-rootwin
A film root ablakban (asztal hátterében) történő lejátszása, új ablak
nyitása helyett.
Csak az x11, xv, xmga és xvidix meghajtókkal.
Csak az x11, xv, xmga, xvidix, quartz és directx meghajtókkal.
.TP
.B \-saturation <\-100\-100>
Video kimenet szaturációjának beállítása (alap: 0).

View File

@ -2058,10 +2058,10 @@ Attiva la frequenza di rinfresco del monitor in Hz.
Attualmente e' supportato solo dal driver \-vo directx combinato con
l' opzione \-vm.
.TP
.B \-rootwin (solo X11)
.B \-rootwin
Visualizza il filmato nella finestra root (lo sfondo del desktop) invece
che aprire una nuova finestra.
Funziona solo con i driver x11, xv, xmga e xvidix.
Funziona solo con i driver x11, xv, xmga, xvidix, quartz e directx.
.TP
.B \-saturation <-100\-100>
Regola la saturazione dell' uscita video (default: 0).

View File

@ -2007,10 +2007,10 @@ Dzia
Ustawia częstotliwość odświeżania monitora.
Obecnie opcja ta jest obsługiwana tylko przez \-vo directx razem z \-vm.
.TP
.B \-rootwin (tylko X11)
.B \-rootwin
Odtwarza film w głównym oknie (tło pulpitu).
Jednak obrazki tła na pulpicie mogą przesłaniać okno filmu.
Dzia³a tylko ze sterownikami wyj¶cia video x11, xv, xmga, xvidix i quartz.
Dzia³a tylko ze sterownikami wyj¶cia video x11, xv, xmga, xvidix, quartz i directx.
.TP
.B \-saturation <-100\-100>
Modyfikuje nasycenie sygnału wyjścia video (domyślnie: 0).

View File

@ -69,6 +69,7 @@ extern int vo_doublebuffering; //tribblebuffering
extern int vo_fs;
extern int vo_directrendering;
extern int vo_ontop;
extern int vo_rootwin;
extern int vidmode;
/*****************************************************************************
@ -600,9 +601,9 @@ static uint32_t Directx_ManageDisplay()
RECT rdw=rd;
AdjustWindowRect(&rdw,WS_OVERLAPPEDWINDOW|WS_SIZEBOX,FALSE);
// printf("window: %i %i %ix%i\n",rdw.left,rdw.top,rdw.right - rdw.left,rdw.bottom - rdw.top);
SetWindowPos(hWnd,(vo_ontop)?HWND_TOPMOST:HWND_NOTOPMOST,rdw.left,rdw.top,rdw.right-rdw.left,rdw.bottom-rdw.top,SWP_NOOWNERZORDER);
SetWindowPos(hWnd,(vo_ontop)?HWND_TOPMOST:(vo_rootwin?HWND_BOTTOM:HWND_NOTOPMOST),rdw.left,rdw.top,rdw.right-rdw.left,rdw.bottom-rdw.top,SWP_NOOWNERZORDER);
}
else SetWindowPos(hWndFS,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_NOOWNERZORDER);
else SetWindowPos(hWndFS,vo_rootwin?HWND_BOTTOM:HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_NOOWNERZORDER);
/*for nonoverlay mode we are finished, for overlay mode we have to display the overlay first*/
if(nooverlay)return 0;
@ -1267,8 +1268,18 @@ static uint32_t control(uint32_t request, void *data, ...)
}
else
{
if(!vo_fs){vo_fs=1;ShowWindow(hWndFS,SW_SHOW);}
else {vo_fs=0; ShowWindow(hWndFS,SW_HIDE);}
if(!vo_fs)
{
vo_fs=1;
ShowWindow(hWndFS,SW_SHOW);
ShowWindow(hWnd,SW_HIDE);
}
else
{
vo_fs=0;
ShowWindow(hWndFS,SW_HIDE);
ShowWindow(hWnd,SW_SHOW);
}
Directx_ManageDisplay();
break;
}