Started some fixes for Windows

This commit is contained in:
Lukas Dürrenberger 2019-01-05 00:52:11 +01:00
parent 0317f83b70
commit 2e4a791bd6
2 changed files with 2 additions and 3 deletions

View File

@ -127,7 +127,7 @@ namespace
DWORD translateStyle(sf::Uint32 style)
{
// Choose the window style according to the Style parameter
DWORD win32Style = WS_VISIBLE;
DWORD win32Style = 0;
if (style == sf::Style::None)
{
win32Style |= WS_POPUP;
@ -593,7 +593,6 @@ void WindowImplWin32::switchToWindowed()
SetWindowPos(m_handle, HWND_TOP, left, top, width, height, SWP_FRAMECHANGED);
fullscreenWindow = NULL;
}

View File

@ -379,7 +379,7 @@ void Window::setState(State state)
if (state == State::Windowed)
{
if (this == fullscreenWindow)
fullscreenWindow == NULL;
fullscreenWindow = NULL;
}
if (state == State::Fullscreen)