mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-28 05:40:11 -04:00
render/color: return tranform in wlr_color_transform_ref()
This is more consistent with the rest of the wlroots APIs and is more concise.
This commit is contained in:
parent
a5aae69b2a
commit
fa2abbeefb
3 changed files with 4 additions and 4 deletions
|
|
@ -20,8 +20,9 @@ static void color_transform_destroy(struct wlr_color_transform *tr) {
|
|||
free(tr);
|
||||
}
|
||||
|
||||
void wlr_color_transform_ref(struct wlr_color_transform *tr) {
|
||||
struct wlr_color_transform *wlr_color_transform_ref(struct wlr_color_transform *tr) {
|
||||
tr->ref_count += 1;
|
||||
return tr;
|
||||
}
|
||||
|
||||
void wlr_color_transform_unref(struct wlr_color_transform *tr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue