]> mj.ucw.cz Git - libucw.git/blobdiff - images/scale-gen.h
Packages: Several fixes in debian packages and their versioning.
[libucw.git] / images / scale-gen.h
index fa23225d858e0b712e34c21262cecb071ab0119e..242a2fed2f01b2b8604cc786d6a4986c9c4f39e0 100644 (file)
@@ -37,7 +37,7 @@ IMAGE_SCALE_PREFIX(nearest_xy)(struct image *dest, struct image *src)
 # define IMAGE_WALK_COL_STEP IMAGE_SCALE_PIXEL_SIZE
 # define IMAGE_WALK_DO_ROW_START do{ row_start = src->pixels + (y_pos >> 16) * src->row_size; y_pos += y_inc; x_pos = x_start; }while(0)
 # define IMAGE_WALK_DO_STEP do{ byte *pos = row_start + (x_pos >> 16) * IMAGE_SCALE_PIXEL_SIZE; x_pos += x_inc; IMAGE_COPY_PIXEL(walk_pos, pos); }while(0)
-# include "images/image-walk.h"
+# include <images/image-walk.h>
 }
 
 #if 0 /* Experiments with rearranging pixels for SSE... */
@@ -230,7 +230,7 @@ IMAGE_SCALE_PREFIX(downsample_xy)(struct image *dest, struct image *src)
       rsrc += src->row_size;
       x_pos = 0;
       y_pos += y_inc;
-      if (y_pos <= 0x10000)
+      if (y_pos <= 0x100000000)
         {
           for (uns cols_counter = src->cols; cols_counter--; )
             {