[gtk+] GDK W32: Fix bounding rect calculation on window creation The bounding rect specifies the top left a
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GDK W32: Fix bounding rect calculation on window creation The bounding rect specifies the top left a
- Date: Wed, 13 Apr 2016 14:18:00 +0000 (UTC)
commit 260d521dd7f2cdfb9a88c32280120fabfb3a27d0
Author: Jeremy Tan <jtanx outlook com>
Date: Wed Apr 13 21:39:46 2016 +0800
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
gdk/win32/gdkwindow-win32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index c304912..9815199 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]