mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
scaled-icon-buffer: prevent accidental downcasting of scale
This causes blurry icons on non-integer scales and triggers an assert within cairo when using a output scale < 1. Fixes: #2983
This commit is contained in:
parent
418f9cb059
commit
32e308b5d5
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ choose_best_icon_buffer(struct scaled_icon_buffer *self, int icon_size, double s
|
|||
}
|
||||
|
||||
static struct lab_data_buffer *
|
||||
img_to_buffer(struct lab_img *img, int width, int height, int scale)
|
||||
img_to_buffer(struct lab_img *img, int width, int height, double scale)
|
||||
{
|
||||
struct lab_data_buffer *buffer = lab_img_render(img, width, height, scale);
|
||||
lab_img_destroy(img);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue