mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Use original image size when not specified.
This commit is contained in:
parent
0907f1035a
commit
3ad217e447
@ -118,6 +118,10 @@ static void cimlib_draw_image(struct image_list_s *cur)
|
||||
imlib_context_set_image(image);
|
||||
w = imlib_image_get_width();
|
||||
h = imlib_image_get_height();
|
||||
if (!cur->wh_set) {
|
||||
cur->w = w;
|
||||
cur->h = h;
|
||||
}
|
||||
imlib_context_set_image(buffer);
|
||||
imlib_blend_image_onto_image(image, 1, 0, 0, h, w,
|
||||
cur->x, cur->y, cur->w, cur->h);
|
||||
|
Loading…
Reference in New Issue
Block a user