[gtk+/rendering-cleanup: 38/41] x11: Fix in_rectangle computation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 38/41] x11: Fix in_rectangle computation
- Date: Tue, 23 Nov 2010 00:24:49 +0000 (UTC)
commit ea995c9ff813c1341b1af48dac4715e785c5af60
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 23 00:56:33 2010 +0100
x11: Fix in_rectangle computation
A point is not in a rectangle when it's at the x + width coordinate.
gdk/x11/gdkdevice-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-core.c b/gdk/x11/gdkdevice-core.c
index 42b0f2e..a6c7d1b 100644
--- a/gdk/x11/gdkdevice-core.c
+++ b/gdk/x11/gdkdevice-core.c
@@ -106,11 +106,11 @@ impl_coord_in_window (GdkWindow *window,
int impl_y)
{
if (impl_x < window->abs_x ||
- impl_x > window->abs_x + window->width)
+ impl_x >= window->abs_x + window->width)
return FALSE;
if (impl_y < window->abs_y ||
- impl_y > window->abs_y + window->height)
+ impl_y >= window->abs_y + window->height)
return FALSE;
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]