backend: add new property: BORDER_COLOR

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2022-01-12 13:34:37 +00:00
parent aa57d3f64a
commit ffe1b79881
4 changed files with 14 additions and 0 deletions

View File

@@ -451,6 +451,7 @@ bool default_set_image_property(backend_t *base attr_unused, enum image_properti
break;
case IMAGE_PROPERTY_CORNER_RADIUS: tex->corner_radius = dargs[0]; break;
case IMAGE_PROPERTY_MAX_BRIGHTNESS: tex->max_brightness = dargs[0]; break;
case IMAGE_PROPERTY_BORDER_COLOR: tex->border_color = *(struct color *)arg; break;
}
return true;