… | |
… | |
1295 | } |
1295 | } |
1296 | |
1296 | |
1297 | int w = im->width; |
1297 | int w = im->width; |
1298 | int h = im->height; |
1298 | int h = im->height; |
1299 | |
1299 | |
|
|
1300 | if (!IN_RANGE_INC (w, 1, 32767) || !IN_RANGE_INC (h, 1, 32767)) |
|
|
1301 | { |
|
|
1302 | rxvt_warn ("Icon image too big, continuing without.\n"); |
|
|
1303 | destroy_asimage (&im); |
|
|
1304 | return; |
|
|
1305 | } |
|
|
1306 | |
1300 | ASImage *result = scale_asimage (asv, im, |
1307 | ASImage *result = scale_asimage (asv, im, |
1301 | w, h, ASA_ARGB32, |
1308 | w, h, ASA_ARGB32, |
1302 | 100, ASIMAGE_QUALITY_DEFAULT); |
1309 | 100, ASIMAGE_QUALITY_DEFAULT); |
1303 | destroy_asimage (&im); |
1310 | destroy_asimage (&im); |
1304 | |
1311 | |