From 513fb82dda7779d6ad0758794f549b27a4212dc4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 11 Mar 2017 12:07:26 -0500 Subject: [PATCH] bug in resize on Windows --- simpledisplay.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index 2a1d625..195d293 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -4203,7 +4203,7 @@ version(Windows) { GetClientRect(hwnd, &client); 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 MoveWindow(hwnd, rect.left, rect.top, rect.right, rect.bottom, true);