help, i've read too much internet today
This commit is contained in:
parent
4d6fbfbd91
commit
740b8d0363
1 changed files with 8 additions and 8 deletions
16
src/image.c
16
src/image.c
|
@ -492,7 +492,7 @@ static inline void tile_write(cammy_tile *tiles,
|
||||||
tile->data[(tile_y<<1)|1] |= ((value & 0x02) >> 1) << (tile_x ^ 7);
|
tile->data[(tile_y<<1)|1] |= ((value & 0x02) >> 1) << (tile_x ^ 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void copy_tile(cammy_image *dest,
|
static void tile_copy(cammy_image *dest,
|
||||||
cammy_image *src,
|
cammy_image *src,
|
||||||
cammy_image_point *to,
|
cammy_image_point *to,
|
||||||
cammy_image_region *from) {
|
cammy_image_region *from) {
|
||||||
|
@ -523,7 +523,7 @@ static void copy_tile(cammy_image *dest,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void copy_bitmap(cammy_image *dest,
|
static void bitmap_copy(cammy_image *dest,
|
||||||
cammy_image *src,
|
cammy_image *src,
|
||||||
cammy_image_point *to,
|
cammy_image_point *to,
|
||||||
cammy_image_region *from) {
|
cammy_image_region *from) {
|
||||||
|
@ -559,7 +559,7 @@ static void copy_bitmap(cammy_image *dest,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void copy_bitmap_to_tile(cammy_image *dest,
|
static void bitmap_copy_to_tile(cammy_image *dest,
|
||||||
cammy_image *src,
|
cammy_image *src,
|
||||||
cammy_image_point *to,
|
cammy_image_point *to,
|
||||||
cammy_image_region *from) {
|
cammy_image_region *from) {
|
||||||
|
@ -595,7 +595,7 @@ static void copy_bitmap_to_tile(cammy_image *dest,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void copy_tile_to_bitmap(cammy_image *dest,
|
static void tile_copy_to_bitmap(cammy_image *dest,
|
||||||
cammy_image *src,
|
cammy_image *src,
|
||||||
cammy_image_point *to,
|
cammy_image_point *to,
|
||||||
cammy_image_region *from) {
|
cammy_image_region *from) {
|
||||||
|
@ -640,12 +640,12 @@ void cammy_image_copy(cammy_image *dest,
|
||||||
case CAMMY_IMAGE_TILE:
|
case CAMMY_IMAGE_TILE:
|
||||||
switch (dest->format) {
|
switch (dest->format) {
|
||||||
case CAMMY_IMAGE_TILE:
|
case CAMMY_IMAGE_TILE:
|
||||||
copy_tile(dest, src, to, from);
|
tile_copy(dest, src, to, from);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case CAMMY_IMAGE_BITMAP:
|
case CAMMY_IMAGE_BITMAP:
|
||||||
copy_tile_to_bitmap(dest, src, to, from);
|
tile_copy_to_bitmap(dest, src, to, from);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -656,12 +656,12 @@ void cammy_image_copy(cammy_image *dest,
|
||||||
case CAMMY_IMAGE_BITMAP:
|
case CAMMY_IMAGE_BITMAP:
|
||||||
switch (dest->format) {
|
switch (dest->format) {
|
||||||
case CAMMY_IMAGE_TILE:
|
case CAMMY_IMAGE_TILE:
|
||||||
copy_bitmap_to_tile(dest, src, to, from);
|
bitmap_copy_to_tile(dest, src, to, from);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case CAMMY_IMAGE_BITMAP:
|
case CAMMY_IMAGE_BITMAP:
|
||||||
copy_bitmap(dest, src, to, from);
|
bitmap_copy(dest, src, to, from);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue