commit 1f66aea

Michael Forney  ·  2013-12-07 07:54:07 +0000 UTC
parent 63f0935
surface: Adjust damaged and opaque regions when surface resizes
1 files changed,  +7, -0
+7, -0
 1@@ -123,6 +123,13 @@ static void set_size(struct swc_surface * surface,
 2         surface->geometry.width = width;
 3         surface->geometry.height = height;
 4 
 5+        pixman_region32_intersect_rect
 6+            (&surface->state.opaque, &surface->state.opaque,
 7+             0, 0, width, height);
 8+        pixman_region32_intersect_rect
 9+            (&surface->state.damage, &surface->state.damage,
10+             0, 0, width, height);
11+
12         swc_send_event(&surface->event_signal,
13                        SWC_SURFACE_EVENT_TYPE_RESIZE, &data);
14     }