diff options
-rw-r--r-- | src/sna/sna_damage.c | 10 | ||||
-rw-r--r-- | src/sna/sna_damage.h | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c index 44677eda..7431f39e 100644 --- a/src/sna/sna_damage.c +++ b/src/sna/sna_damage.c @@ -48,6 +48,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * cheapy discard no-ops. */ +struct sna_damage_box { + struct list list; + int size; +} __attribute__((packed)); + static struct sna_damage *__freed_damage; static inline bool region_is_singular(RegionRec *r) @@ -182,11 +187,6 @@ static struct sna_damage *_sna_damage_create(void) return damage; } -struct sna_damage_box { - struct list list; - int size; -}; - static bool _sna_damage_create_boxes(struct sna_damage *damage, int count) { diff --git a/src/sna/sna_damage.h b/src/sna/sna_damage.h index 67c44c34..8e0c73cc 100644 --- a/src/sna/sna_damage.h +++ b/src/sna/sna_damage.h @@ -6,8 +6,6 @@ #include "compiler.h" -struct sna_damage_box; - struct sna_damage { BoxRec extents; pixman_region16_t region; |