[vlc-devel] commit: skins2(Win32): fix second bug of #685 (Erwan Tulou )
git version control
git at videolan.org
Wed Feb 24 14:46:54 CET 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Wed Feb 24 14:16:57 2010 +0100| [10c43ff060f2fb46db77f62a12c6580d785b87ca] | committer: Erwan Tulou
skins2(Win32): fix second bug of #685
On Windows, skins with on top set were still visible in fullscreen mode
This patch makes fullscreen also a topmost window.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10c43ff060f2fb46db77f62a12c6580d785b87ca
---
modules/gui/skins2/win32/win32_window.cpp | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/modules/gui/skins2/win32/win32_window.cpp b/modules/gui/skins2/win32/win32_window.cpp
index 8603a6b..a26bc65 100644
--- a/modules/gui/skins2/win32/win32_window.cpp
+++ b/modules/gui/skins2/win32/win32_window.cpp
@@ -140,11 +140,18 @@ void Win32Window::reparent( void* OSHandle, int x, int y, int w, int h )
void Win32Window::show() const
{
- if( m_type == GenericWindow::VoutWindow )
- SetWindowPos( m_hWnd, HWND_BOTTOM, 0, 0, 0, 0,
- SWP_NOMOVE | SWP_NOSIZE );
+ if( m_type == GenericWindow::VoutWindow )
+ {
+ SetWindowPos( m_hWnd, HWND_BOTTOM, 0, 0, 0, 0,
+ SWP_NOMOVE | SWP_NOSIZE );
+ }
+ else if( m_type == GenericWindow::FullscreenWindow )
+ {
+ SetWindowPos( m_hWnd, HWND_TOPMOST, 0, 0, 0, 0,
+ SWP_NOMOVE | SWP_NOSIZE );
+ }
- ShowWindow( m_hWnd, SW_SHOW );
+ ShowWindow( m_hWnd, SW_SHOW );
}
More information about the vlc-devel
mailing list