From 14c0dcad3f9673d1f3f1d757fe6a97edd9f64a14 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Sun, 7 Feb 2021 15:57:30 -0500 Subject: [PATCH] Properly set windows size on Windows --- platforms/windows/main.cpp.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/windows/main.cpp.in b/platforms/windows/main.cpp.in index 6cc2741..9c65811 100755 --- a/platforms/windows/main.cpp.in +++ b/platforms/windows/main.cpp.in @@ -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,