buffer: create cairo_t inside buffer_create()

This commit is contained in:
Johan Malm 2022-02-13 13:00:26 +00:00
parent ba909e4fc7
commit f22bfc96b2
3 changed files with 22 additions and 26 deletions

View file

@ -38,7 +38,7 @@ struct lab_data_buffer {
size_t stride;
};
struct lab_data_buffer *buffer_create(cairo_t *cairo);
void buffer_destroy(struct lab_data_buffer *buffer);
struct lab_data_buffer *buffer_create(uint32_t width, uint32_t height,
float scale);
#endif /* __LABWC_BUFFER_H */