… | |
… | |
257 | int x = 0, y = 0; |
257 | int x = 0, y = 0; |
258 | unsigned int w = 0, h = 0; |
258 | unsigned int w = 0, h = 0; |
259 | unsigned int n; |
259 | unsigned int n; |
260 | unsigned long new_flags = (flags & (~geometryFlags)); |
260 | unsigned long new_flags = (flags & (~geometryFlags)); |
261 | char *p; |
261 | char *p; |
262 | # define MAXLEN_GEOM 256 /* could be longer then regular geometry string */ |
262 | # define MAXLEN_GEOM 256 /* could be longer than regular geometry string */ |
263 | |
263 | |
264 | if (geom == NULL) |
264 | if (geom == NULL) |
265 | return false; |
265 | return false; |
266 | |
266 | |
267 | char str[MAXLEN_GEOM]; |
267 | char str[MAXLEN_GEOM]; |
… | |
… | |
512 | 100, ASIMAGE_QUALITY_DEFAULT); |
512 | 100, ASIMAGE_QUALITY_DEFAULT); |
513 | } |
513 | } |
514 | if (background == NULL) |
514 | if (background == NULL) |
515 | { |
515 | { |
516 | /* if tiling - pixmap has to be sized exactly as the image, |
516 | /* if tiling - pixmap has to be sized exactly as the image, |
517 | but there is no need to make it bigger then the window! */ |
517 | but there is no need to make it bigger than the window! */ |
518 | if (h_scale == 0) |
518 | if (h_scale == 0) |
519 | new_pmap_width = min (result->width, target_width); |
519 | new_pmap_width = min (result->width, target_width); |
520 | if (v_scale == 0) |
520 | if (v_scale == 0) |
521 | new_pmap_height = min (result->height, target_height); |
521 | new_pmap_height = min (result->height, target_height); |
522 | /* we also need to tile our image in one or both directions */ |
522 | /* we also need to tile our image in one or both directions */ |