[gtk+/gtk-2-24] tests: Don't clip in offscreenbox test



commit f27b33b40e74b96bda8de66775a8730229250dfd
Author: Benjamin Otte <otte redhat com>
Date:   Wed Nov 17 06:29:20 2010 +0100

    tests: Don't clip in offscreenbox test
    
    The clipping is unnecessary

 tests/gtkoffscreenbox.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index b6caa14..de7e201 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -598,8 +598,6 @@ gtk_offscreen_box_expose (GtkWidget      *widget,
 
 	  if (offscreen_box->child2 && gtk_widget_get_visible (offscreen_box->child2))
 	    {
-              gint w, h;
-
 	      pixmap = gdk_offscreen_window_get_pixmap (offscreen_box->offscreen_window2);
               child_area = offscreen_box->child2->allocation;
 
@@ -611,11 +609,6 @@ gtk_offscreen_box_expose (GtkWidget      *widget,
 	      cairo_rotate (cr, offscreen_box->angle);
 	      cairo_translate (cr, -child_area.width / 2, -child_area.height / 2);
 
-              /* clip */
-              gdk_drawable_get_size (pixmap, &w, &h);
-              cairo_rectangle (cr, 0, 0, w, h);
-              cairo_clip (cr);
-
               /* paint */
 	      gdk_cairo_set_source_pixmap (cr, pixmap, 0, 0);
 	      cairo_paint (cr);



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