swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 1f66aeafbbbbe34c700f68efa4b6496f6c54d576
parent 63f093568a5efb0638ecf53ca209ad5f2415b93e
Author: Michael Forney <mforney@mforney.org>
Date:   Fri,  6 Dec 2013 23:54:07 -0800

surface: Adjust damaged and opaque regions when surface resizes

Diffstat:
Mlibswc/surface.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/libswc/surface.c b/libswc/surface.c @@ -123,6 +123,13 @@ static void set_size(struct swc_surface * surface, surface->geometry.width = width; surface->geometry.height = height; + pixman_region32_intersect_rect + (&surface->state.opaque, &surface->state.opaque, + 0, 0, width, height); + pixman_region32_intersect_rect + (&surface->state.damage, &surface->state.damage, + 0, 0, width, height); + swc_send_event(&surface->event_signal, SWC_SURFACE_EVENT_TYPE_RESIZE, &data); }