mirror of https://github.com/adamdruppe/arsd.git
bug in resize on Windows
This commit is contained in:
parent
5ec9f15d94
commit
513fb82dda
|
@ -4203,7 +4203,7 @@ version(Windows) {
|
||||||
GetClientRect(hwnd, &client);
|
GetClientRect(hwnd, &client);
|
||||||
|
|
||||||
rect.right = rect.right - client.right + w;
|
rect.right = rect.right - client.right + w;
|
||||||
rect.bottom = rect.bottom - client.bottom + w;
|
rect.bottom = rect.bottom - client.bottom + h;
|
||||||
|
|
||||||
// same position, new size for the client rectangle
|
// same position, new size for the client rectangle
|
||||||
MoveWindow(hwnd, rect.left, rect.top, rect.right, rect.bottom, true);
|
MoveWindow(hwnd, rect.left, rect.top, rect.right, rect.bottom, true);
|
||||||
|
|
Loading…
Reference in New Issue