Commit 10c43ff0 authored by Erwan Tulou's avatar 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.
parent 027b4402
......@@ -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 );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment