#undef LOCAL_DEBUG
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/error.h"
#include "images/math.h"
}
else
{
- if (dest->cols <= src->cols && src->cols <= dest->cols)
+ if (dest->cols <= src->cols && dest->rows <= src->rows)
{
/* Downscale in both dimensions */
image_scale_downsample_xy(dest, src);
}
void
-image_dimensions_fit_to_box(u32 *cols, u32 *rows, u32 max_cols, u32 max_rows, uns upsample)
+image_dimensions_fit_to_box(uns *cols, uns *rows, uns max_cols, uns max_rows, uns upsample)
{
ASSERT(image_dimensions_valid(*cols, *rows));
ASSERT(image_dimensions_valid(max_cols, max_rows));