mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Started some fixes for Windows
This commit is contained in:
parent
0317f83b70
commit
2e4a791bd6
@ -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;
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,7 @@ void Window::setState(State state)
|
||||
if (state == State::Windowed)
|
||||
{
|
||||
if (this == fullscreenWindow)
|
||||
fullscreenWindow == NULL;
|
||||
fullscreenWindow = NULL;
|
||||
}
|
||||
|
||||
if (state == State::Fullscreen)
|
||||
|
Loading…
Reference in New Issue
Block a user