MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / wndMoveWindow

Function wndMoveWindow

Common_3/OS/WindowSystem/WindowSystem.cpp:385–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void wndMoveWindow(void* pUserData)
386{
387 WindowDesc* pWindow = pWindowRef;
388 int32_t expectedClientWidth = pWindowRef->mWndW;
389 int32_t expectedClientHeight = pWindowRef->mWndH;
390 int32_t expectedClientX = pWindowRef->mWndX;
391 int32_t expectedClientY = pWindowRef->mWndY;
392
393 if (pWindow->mWindowMode == WM_FULLSCREEN)
394 {
395 setWindowed(pWindow);
396 }
397 wndUpdateResolutionsList(pUserData);
398 RectDesc rectDesc{ pWindowRef->mWndX, pWindowRef->mWndY, pWindowRef->mWndX + pWindowRef->mWndW, pWindowRef->mWndY + pWindowRef->mWndH };
399 setWindowClientRect(pWindow, &rectDesc);
400 LOGF(LogLevel::eINFO, "MoveWindow() Position check: %s",
401 wndValidateClientRectPos(expectedClientX, expectedClientY) ? "SUCCESS" : "FAIL");
402 LOGF(LogLevel::eINFO, "MoveWindow() Size check: %s",
403 wndValidateClientRectSize(expectedClientWidth, expectedClientHeight) ? "SUCCESS" : "FAIL");
404}
405
406void wndSetRecommendedWindowSize(void* pUserData)
407{

Callers

nothing calls this directly

Calls 5

wndUpdateResolutionsListFunction · 0.85
wndValidateClientRectPosFunction · 0.85
setWindowedFunction · 0.50
setWindowClientRectFunction · 0.50

Tested by

no test coverage detected