forked from AuroraMiddleware/gtk
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:
parent
5cf4de8f27
commit
260d521dd7
@ -817,8 +817,8 @@ _gdk_win32_display_create_window_impl (GdkDisplay *display,
|
||||
{
|
||||
rect.left = window->x;
|
||||
rect.top = window->y;
|
||||
rect.right = window->width;
|
||||
rect.bottom = window->height;
|
||||
rect.right = window->width + window->x;
|
||||
rect.bottom = window->height + window->y;
|
||||
|
||||
AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user