[evolution-patches] one last clip fix



This small patch clips cleared areas to the viewport.

--Larry


Index: htmldrawqueue.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmldrawqueue.c,v
retrieving revision 1.41
diff -u -p -r1.41 htmldrawqueue.c
--- htmldrawqueue.c	15 Apr 2003 06:40:06 -0000	1.41
+++ htmldrawqueue.c	15 Apr 2003 17:07:12 -0000
@@ -346,8 +346,10 @@ clear (HTMLDrawQueue *queue,
 	x2 = x1 + elem->width;
 	y2 = y1 + elem->height;
 
+	if (!html_engine_intersection (e, &x1, &y1, &x2, &y2))
+		return;
+				      
 	html_painter_begin (e->painter, x1, y1, x2, y2);
-
 	if (elem->background_color != NULL) {
 		html_engine_draw_background (e, x1, y1, x2 - x1, y2 - y1);
 	}
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1780
diff -u -p -r1.1780 ChangeLog
--- ChangeLog	15 Apr 2003 06:40:05 -0000	1.1780
+++ ChangeLog	15 Apr 2003 17:07:15 -0000
@@ -1,5 +1,8 @@
 2003-04-15  Larry Ewing  <lewing ximian com>
 
+	* htmldrawqueue.c (clear): clip the cleared area to the visible
+	area.
+
 	* htmliframe.c (calc_size): let the engine know what size we
 	decided it was (for later clipping).
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]