src/buffer: Automatically adapt to scale attribute

Based on discussion in PR #389
This commit is contained in:
Consolatis 2022-06-12 21:11:25 +02:00 committed by Johan Malm
parent 5626c20c44
commit 505f92e733
3 changed files with 17 additions and 4 deletions

View file

@ -37,6 +37,8 @@ struct lab_data_buffer {
uint32_t format;
size_t stride;
bool free_on_destroy;
uint32_t unscaled_width;
uint32_t unscaled_height;
};
/* Create a buffer which creates a new cairo CAIRO_FORMAT_ARGB32 surface */