summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-03-07 19:31:08 -0800
committerGitHub <noreply@github.com>2021-03-07 19:31:08 -0800
commit95ca93938f5d45f4eaf340867965bd77a1724d6c (patch)
tree70ef2c3d9206ff1972a858c26b132b61a3110d54 /tools
parente962f1a1c12e87baa7adc2ade507512dc8269348 (diff)
Bug fix in window creation. (#1738)
Diffstat (limited to 'tools')
-rw-r--r--tools/graphics-app-framework/windows/win-window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/graphics-app-framework/windows/win-window.cpp b/tools/graphics-app-framework/windows/win-window.cpp
index a86e360d0..2beb65d70 100644
--- a/tools/graphics-app-framework/windows/win-window.cpp
+++ b/tools/graphics-app-framework/windows/win-window.cpp
@@ -287,8 +287,8 @@ Window* createWindow(WindowDesc const& desc)
windowStyle,
CW_USEDEFAULT,
0, // x, y
- windowRect.right,
- windowRect.bottom,
+ windowRect.right - windowRect.left,
+ windowRect.bottom - windowRect.top,
NULL, // parent
NULL, // menu
instance,