mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
util/box: introduce wlr_fbox_empty
Same as wlr_box_empty, but for wlr_fbox.
This commit is contained in:
parent
7939bf8cc6
commit
fdc22449d6
2 changed files with 15 additions and 3 deletions
|
|
@ -120,6 +120,10 @@ void wlr_box_transform(struct wlr_box *dest, const struct wlr_box *box,
|
|||
}
|
||||
}
|
||||
|
||||
bool wlr_fbox_empty(const struct wlr_fbox *box) {
|
||||
return box == NULL || box->width <= 0 || box->height <= 0;
|
||||
}
|
||||
|
||||
void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box,
|
||||
enum wl_output_transform transform, double width, double height) {
|
||||
struct wlr_fbox src = *box;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue