void *user_data);
void free_resolution(void *resolution, void *user_data);
res_t * ippResolutionToRes(ipp_attribute_t *attr, int index);
+res_t * resolutionNew(int x, int y);
cups_array_t * resolutionArrayNew();
cups_array_t* generate_sizes(ipp_t *response,
ipp_attribute_t **defattr,
min_res->x = res->x;
min_res->y = res->y;
} else {
- if(compare_resolutions((void *)res,(void *)max_res,NULL) > 0)
+ if(compare_resolutions((void *)res,(void *)max_res,NULL) > 0) {
max_res->x = res->x;
max_res->y = res->y;
- if(compare_resolutions((void *)res,(void *)min_res,NULL) < 0)
+ }
+ if(compare_resolutions((void *)res,(void *)min_res,NULL) < 0) {
min_res->x = res->x;
min_res->y = res->y;
+ }
}
free_resolution(res, NULL);
res = NULL;