MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / PrepareWindow

Method PrepareWindow

src/Nazara/Platform/Win32/WindowImpl.cpp:919–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917 }
918
919 void WindowImpl::PrepareWindow(bool fullscreen)
920 {
921 if (fullscreen)
922 {
923 SetForegroundWindow(m_handle);
924 ShowWindow(m_handle, SW_SHOW);
925 }
926
927 // Cache window position/size after creation
928 RECT clientRect, windowRect;
929 GetClientRect(m_handle, &clientRect);
930 GetWindowRect(m_handle, &windowRect);
931
932 m_position.Set(windowRect.left, windowRect.top);
933 m_size.Set(clientRect.right - clientRect.left, clientRect.bottom - clientRect.top);
934 }
935
936 bool WindowImpl::Initialize()
937 {

Callers 1

WindowThreadMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected