GDK W32: Fix bounding rect calculation on window creation The bounding rect specifies the top left and bottom right corners - the bottom right corner must account for the current window position.

https://bugzilla.gnome.org/show_bug.cgi?id=764996
This commit is contained in:
Jeremy Tan 2016-04-13 21:39:46 +08:00 committed by Руслан Ижбулатов
parent 5cf4de8f27
commit 260d521dd7

View File

@ -817,8 +817,8 @@ _gdk_win32_display_create_window_impl (GdkDisplay *display,
{ {
rect.left = window->x; rect.left = window->x;
rect.top = window->y; rect.top = window->y;
rect.right = window->width; rect.right = window->width + window->x;
rect.bottom = window->height; rect.bottom = window->height + window->y;
AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle); AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);