bar: repair border drawing (was using wrong height)

Fix regression after porting from cairo to pixman. The bar border was
drawn using the wrong height info.
This commit is contained in:
Daniel Eklöf 2019-09-22 12:38:30 +02:00
parent bd70a4dc37
commit 274255f9ab
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -73,9 +73,9 @@ expose(const struct bar *_bar)
PIXMAN_OP_OVER, pix, &bar->border.color, 4, PIXMAN_OP_OVER, pix, &bar->border.color, 4,
(pixman_rectangle16_t[]){ (pixman_rectangle16_t[]){
{0, 0, bar->width, bar->border.width}, {0, 0, bar->width, bar->border.width},
{0, 0, bar->border.width, bar->height}, {0, 0, bar->border.width, bar->height_with_border},
{bar->width - bar->border.width, 0, bar->border.width, bar->height}, {bar->width - bar->border.width, 0, bar->border.width, bar->height_with_border},
{0, bar->height - bar->border.width, bar->width, bar->border.width}, {0, bar->height_with_border - bar->border.width, bar->width, bar->border.width},
}); });
} }