mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
[dirty] exit instead of segfault
This commit is contained in:
parent
5e4f147ed2
commit
4e7de67d35
1 changed files with 5 additions and 0 deletions
|
|
@ -770,6 +770,11 @@ rounded_rect(struct rounded_corner_ctx *ctx)
|
|||
/* TODO: scale */
|
||||
buffer = buffer_create_cairo(w, h, 1, /*free_on_destroy*/ true);
|
||||
|
||||
if (!buffer) {
|
||||
wlr_log(WLR_ERROR, "failed to create cairo buffer, fonts missing?");
|
||||
exit(2);
|
||||
}
|
||||
|
||||
cairo_t *cairo = buffer->cairo;
|
||||
cairo_surface_t *surf = cairo_get_target(cairo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue