51
img_corners_in( GdkDrawable *window,
52
GdkPixbuf *image_from,
50
img_corners_in( cairo_t *cr,
51
cairo_surface_t *image_from,
52
cairo_surface_t *image_to,
57
transition_render( window, image_from, image_to, progress, file_desc, 1 );
55
transition_render( cr, image_from, image_to, progress, 1 );
61
img_corners_out( GdkDrawable *window,
62
GdkPixbuf *image_from,
59
img_corners_out(cairo_t *cr,
60
cairo_surface_t *image_from,
61
cairo_surface_t *image_to,
67
transition_render( window, image_from, image_to, progress, file_desc, 2 );
64
transition_render( cr, image_from, image_to, progress, 2 );
70
67
/* Local functions definitions */
72
transition_render( GdkDrawable *window,
73
GdkPixbuf *image_from,
69
transition_render( cairo_t *cr,
70
cairo_surface_t *image_from,
71
cairo_surface_t *image_to,
80
cairo_surface_t *surface;
84
gdk_drawable_get_size( window, &width, &height );
88
cr = gdk_cairo_create( window );
92
surface = cairo_image_surface_create( CAIRO_FORMAT_RGB24,
94
cr = cairo_create( surface );
97
gdk_cairo_set_source_pixbuf( cr, image_from, 0, 0 );
75
gint width, height, w, h, x, y;
77
width = cairo_image_surface_get_width( image_from );
78
height = cairo_image_surface_get_height( image_from );
80
cairo_set_source_surface( cr, image_from, 0, 0 );
100
gdk_cairo_set_source_pixbuf( cr, image_to, 0, 0 );
83
cairo_set_source_surface( cr, image_to, 0, 0 );
101
84
w = width * progress / 2;
102
85
h = height * progress / 2;
106
89
cairo_rectangle( cr, 0, 0, w, h );