1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 20:44:56 +00:00

Use original image size when not specified.

This commit is contained in:
Brenden Matthews 2009-05-22 01:18:07 -06:00
parent 0907f1035a
commit 3ad217e447

View File

@ -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);