fix: corner borders no longer render when borders are off
This commit is contained in:
parent
55f8222855
commit
e6cb4e9fa0
|
@ -361,7 +361,7 @@ void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box,
|
||||||
void fx_render_border_corner(struct fx_renderer *renderer, const struct wlr_box *box,
|
void fx_render_border_corner(struct fx_renderer *renderer, const struct wlr_box *box,
|
||||||
const float color[static 4], const float projection[static 9],
|
const float color[static 4], const float projection[static 9],
|
||||||
enum corner_location corner_location, int radius, int border_thickness) {
|
enum corner_location corner_location, int radius, int border_thickness) {
|
||||||
if (box->width == 0 || box->height == 0) {
|
if (border_thickness == 0 || box->width == 0 || box->height == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(box->width > 0 && box->height > 0);
|
assert(box->width > 0 && box->height > 0);
|
||||||
|
|
Loading…
Reference in a new issue