[gtk+] Fix a thinko in computing damage for segments
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a thinko in computing damage for segments
- Date: Sat, 19 Dec 2009 00:20:32 +0000 (UTC)
commit aadb190b77b0bd7d55f0e8939aaea10932c5328c
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 18 19:17:04 2009 -0500
Fix a thinko in computing damage for segments
The code was not taking the endpoint of the first segment into account.
This was reported in bug 604747.
gdk/gdkoffscreenwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index dcba0a1..23d92af 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -514,7 +514,7 @@ gdk_offscreen_window_draw_segments (GdkDrawable *drawable,
min_x = max_x = segs[0].x1;
min_y = max_y = segs[0].y1;
- for (i = 1; i < nsegs; i++)
+ for (i = 0; i < nsegs; i++)
{
min_x = MIN (min_x, segs[i].x1);
max_x = MAX (max_x, segs[i].x1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]