Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 10193:f0bcaf5ea675
From: Michael Joosten <joost@c-lab.de>
PATCH: fullscreen issues with GUI, WM layers, gmplayer plays first file always twice
author | pontscho |
---|---|
date | Mon, 26 May 2003 08:34:17 +0000 |
parents | 64b8c5a07c2c |
children | 2608bf0037b6 |
comparison
equal
deleted
inserted
replaced
10192:dcdc6ae3ebaf | 10193:f0bcaf5ea675 |
---|---|
30 #include "../libmpdemux/stream.h" | 30 #include "../libmpdemux/stream.h" |
31 | 31 |
32 extern float rel_seek_secs; | 32 extern float rel_seek_secs; |
33 extern int abs_seek_pos; | 33 extern int abs_seek_pos; |
34 | 34 |
35 static int mplGotoTheNext = 1; | 35 int mplGotoTheNext = 1; |
36 | 36 |
37 void mplFullScreen( void ) | 37 void mplFullScreen( void ) |
38 { | 38 { |
39 if ( guiIntfStruct.NoWindow && guiIntfStruct.Playing ) return; | 39 if ( guiIntfStruct.NoWindow && guiIntfStruct.Playing ) return; |
40 | 40 |
55 } | 55 } |
56 } | 56 } |
57 if ( guiIntfStruct.Playing || gtkShowVideoWindow ) wsFullScreen( &appMPlayer.subWindow ); | 57 if ( guiIntfStruct.Playing || gtkShowVideoWindow ) wsFullScreen( &appMPlayer.subWindow ); |
58 fullscreen=vo_fs=appMPlayer.subWindow.isFullScreen; | 58 fullscreen=vo_fs=appMPlayer.subWindow.isFullScreen; |
59 wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen ); | 59 wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen ); |
60 wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen ); | 60 if ( appMPlayer.menuIsPresent ) wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen ); |
61 | 61 |
62 if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 ); | 62 if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 ); |
63 else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B ); | 63 else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B ); |
64 } | 64 } |
65 | 65 |