Mercurial > mplayer.hg
comparison gui/ui/video.c @ 35757:b1d32b46514e
Get rid of uiVideoRender.
Directly use guiInfo.Playing instead.
author | ib |
---|---|
date | Thu, 24 Jan 2013 16:06:48 +0000 |
parents | 0d703832d865 |
children | 6742a91ba28a |
comparison
equal
deleted
inserted
replaced
35756:3919b6360e54 | 35757:b1d32b46514e |
---|---|
28 #include "gui/app/app.h" | 28 #include "gui/app/app.h" |
29 #include "gui/app/gui.h" | 29 #include "gui/app/gui.h" |
30 #include "gui/interface.h" | 30 #include "gui/interface.h" |
31 #include "gui/dialog/dialog.h" | 31 #include "gui/dialog/dialog.h" |
32 | 32 |
33 int uiVideoRender = False; | |
34 int videoVisible = 0; | 33 int videoVisible = 0; |
35 | 34 |
36 void uiVideoDraw( void ) | 35 void uiVideoDraw( void ) |
37 { | 36 { |
38 if ( guiApp.videoWindow.State == wsWindowClosed ) mplayer( MPLAYER_EXIT_GUI, EXIT_QUIT, 0 ); | 37 if ( guiApp.videoWindow.State == wsWindowClosed ) mplayer( MPLAYER_EXIT_GUI, EXIT_QUIT, 0 ); |
39 | 38 |
40 if ( guiApp.videoWindow.State == wsWindowFocusIn ) videoVisible++; | 39 if ( guiApp.videoWindow.State == wsWindowFocusIn ) videoVisible++; |
41 if ( guiApp.videoWindow.State == wsWindowFocusOut && metacity_hack != 3 ) videoVisible--; | 40 if ( guiApp.videoWindow.State == wsWindowFocusOut && metacity_hack != 3 ) videoVisible--; |
42 | 41 |
43 if ( !guiApp.videoWindow.Mapped || | 42 if ( !guiApp.videoWindow.Mapped || |
44 guiApp.videoWindow.Visible == wsWindowNotVisible ) return; | 43 guiApp.videoWindow.Visible == wsWindowNotVisible || |
44 guiInfo.Playing) return; | |
45 | 45 |
46 if ( guiInfo.Playing ) uiVideoRender=False; | 46 if ( guiApp.videoWindow.State == wsWindowExpose ) |
47 | |
48 if ( uiVideoRender && guiApp.videoWindow.State == wsWindowExpose ) | |
49 { | 47 { |
50 wsWindowBackground(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); | 48 wsWindowBackground(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); |
51 if ( guiApp.video.Bitmap.Image ) wsImageDraw( &guiApp.videoWindow ); | 49 if ( guiApp.video.Bitmap.Image ) wsImageDraw( &guiApp.videoWindow ); |
52 } | 50 } |
53 } | 51 } |