mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): handle WM_ACTIVATE in d3d backend
This commit is contained in:
parent
10e5fbb42b
commit
7bda95494d
1 changed files with 8 additions and 1 deletions
|
|
@ -293,7 +293,14 @@ LRESULT CGxDeviceD3d::WindowProcD3d(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
|
|||
}
|
||||
|
||||
case WM_ACTIVATE: {
|
||||
// TODO
|
||||
if (wParam == WA_INACTIVE && !device->IDevIsWindowed()) {
|
||||
CRect windowRect = { 0.0f, 0.f, 0.0f, 0.0f };
|
||||
device->DeviceWM(GxWM_Size, reinterpret_cast<uintptr_t>(&windowRect), 1);
|
||||
} else if (wParam == WA_ACTIVE && !device->IDevIsWindowed()) {
|
||||
CRect windowRect;
|
||||
device->CapsWindowSizeInScreenCoords(windowRect);
|
||||
device->DeviceWM(GxWM_Size, reinterpret_cast<uintptr_t>(&windowRect), 3);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue