@ -140,7 +140,7 @@ surface_get_label(struct weston_surface *surface, char *buf, size_t len)
struct weston_view *
struct weston_view *
weston_curtain_create ( struct weston_compositor * compositor ,
weston_curtain_create ( struct weston_compositor * compositor ,
struct weston_solid_color_surface * s s ,
struct weston_curtain_params * param s ,
float x , float y , int w , int h )
float x , float y , int w , int h )
{
{
struct weston_surface * surface = NULL ;
struct weston_surface * surface = NULL ;
@ -158,11 +158,11 @@ weston_curtain_create(struct weston_compositor *compositor,
return NULL ;
return NULL ;
}
}
surface - > committed = s s- > surface_committed ;
surface - > committed = param s- > surface_committed ;
surface - > committed_private = s s- > surface_private ;
surface - > committed_private = param s- > surface_private ;
weston_surface_set_color ( surface , s s- > r , s s- > g , s s- > b , 1.0 ) ;
weston_surface_set_color ( surface , param s- > r , param s- > g , param s- > b , 1.0 ) ;
weston_surface_set_label_func ( surface , s s- > get_label ) ;
weston_surface_set_label_func ( surface , param s- > get_label ) ;
pixman_region32_fini ( & surface - > opaque ) ;
pixman_region32_fini ( & surface - > opaque ) ;
pixman_region32_init_rect ( & surface - > opaque , 0 , 0 , w , h ) ;
pixman_region32_init_rect ( & surface - > opaque , 0 , 0 , w , h ) ;
pixman_region32_fini ( & surface - > input ) ;
pixman_region32_fini ( & surface - > input ) ;