Fixed WM_WINDOWPOSCHANGED coordinate bug.
This commit is contained in:
parent
85b7a2f5bb
commit
5cf86767bb
|
@ -1113,8 +1113,8 @@ final class WindowsDisplay implements DisplayImplementation {
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
if(getWindowRect(hwnd, rect_buffer)) {
|
if(getWindowRect(hwnd, rect_buffer)) {
|
||||||
rect.copyFromBuffer(rect_buffer);
|
rect.copyFromBuffer(rect_buffer);
|
||||||
x = rect.top;
|
x = rect.left;
|
||||||
y = rect.bottom;
|
y = rect.top;
|
||||||
} else {
|
} else {
|
||||||
LWJGLUtil.log("WM_WINDOWPOSCHANGED: Unable to get window rect");
|
LWJGLUtil.log("WM_WINDOWPOSCHANGED: Unable to get window rect");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue