fix: corner borders no longer render when borders are off

This commit is contained in:
Will McKinnon 2022-10-26 01:12:57 -04:00
parent 55f8222855
commit e6cb4e9fa0

View file

@ -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,
const float color[static 4], const float projection[static 9],
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;
}
assert(box->width > 0 && box->height > 0);