Don't need that
This commit is contained in:
parent
c4f9d8e593
commit
8ab853d166
1 changed files with 0 additions and 41 deletions
41
src/image.c
41
src/image.c
|
@ -488,47 +488,6 @@ error_snprintf_name:
|
|||
return -1;
|
||||
}
|
||||
|
||||
int cammy_image_stripe(uint8_t *buf, size_t width, size_t height, int depth) {
|
||||
cammy_tile *tiles;
|
||||
int file = 0;
|
||||
|
||||
size_t x, y;
|
||||
|
||||
if ((tiles = malloc(CAMMY_SCREEN_SIZE)) == NULL) {
|
||||
goto error_malloc_tiles;
|
||||
}
|
||||
|
||||
for (x=0; x<width; x+=224) {
|
||||
for (y=0; y<height; y+=CAMMY_SCREEN_HEIGHT) {
|
||||
cammy_image_dither_to_tile(tiles, buf,
|
||||
0, 0,
|
||||
x + 32, y,
|
||||
CAMMY_SCREEN_WIDTH,
|
||||
CAMMY_SCREEN_HEIGHT,
|
||||
CAMMY_SCREEN_WIDTH,
|
||||
CAMMY_SCREEN_HEIGHT,
|
||||
width,
|
||||
height,
|
||||
depth);
|
||||
|
||||
if (save_tile_to_file(tiles, CAMMY_SCREEN_WIDTH,
|
||||
CAMMY_SCREEN_HEIGHT, file++) < 0) {
|
||||
goto error_save_tile_to_file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(tiles);
|
||||
|
||||
return 0;
|
||||
|
||||
error_save_tile_to_file:
|
||||
free(tiles);
|
||||
|
||||
error_malloc_tiles:
|
||||
return 1;
|
||||
}
|
||||
|
||||
int cammy_image_slice(uint8_t *buf,
|
||||
size_t width,
|
||||
size_t height,
|
||||
|
|
Loading…
Add table
Reference in a new issue