diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2020-05-05 13:52:17 +0200 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2020-05-07 21:56:59 +0200 |
commit | d36ca86b7fa95271044a1bfcd6e8613289215fb8 (patch) | |
tree | 3821cdbd45148a0cb96ee1a9df299b9fa6d4cd6f | |
parent | 5b7b7975e656fa93e3aa35585fc285676a476192 (diff) |
wglgears: respect x and y positions
When adding support for the "-geometry" option, I forgot to update the
second call to CreateWindowEx, meaning it only respected this option
when not using srgb or multisampling. Let's fix that.
Fixes: 16c9a130 ("wglgears: add geometry option")
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/wgl/wglgears.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgl/wglgears.c b/src/wgl/wglgears.c index 5769c07e..5d2bb015 100644 --- a/src/wgl/wglgears.c +++ b/src/wgl/wglgears.c @@ -490,7 +490,7 @@ make_window(const char *name, int x, int y, int width, int height) hWnd = CreateWindowEx(dwExStyle, name, name, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | dwStyle, - 0, 0, + x, y, winrect.right - winrect.left, winrect.bottom - winrect.top, NULL, NULL, hInst, NULL); |