Archived
1
Fork 0

Properly set windows size on Windows

This commit is contained in:
redstrate 2021-02-07 15:57:30 -05:00
parent 90272af197
commit 14c0dcad3f

View file

@ -60,8 +60,8 @@ int platform::open_window(const std::string_view title, const prism::Rectangle r
flags == WindowFlags::Resizable ? WS_OVERLAPPEDWINDOW : (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX), // Window style
rect.offset.x,
rect.offset.y,
wr.right - wr.left,
wr.bottom - wr.top,
rect.extent.width,
rect.extent.height,
NULL,
NULL,
instance,