- Treballant en que els GIFs no donen pel cul
This commit is contained in:
6
mini.cpp
6
mini.cpp
@@ -242,12 +242,14 @@ uint8_t loadsurf(const char* filename) {
|
||||
|
||||
void savesurf(uint8_t surface, const char* filename, uint8_t *pal, uint8_t colors)
|
||||
{
|
||||
uint8_t depth=0;
|
||||
gif::write_gif(filename, surfaces[surface].p, surfaces[surface].w, surfaces[surface].h, pal, colors);
|
||||
/*uint8_t depth=0;
|
||||
do { colors = colors >> 1; depth++; } while (colors!=0);
|
||||
printf("pal depth: %i\n", depth);
|
||||
gif::gif_t *file = gif::create(filename, surfaces[surface].w, surfaces[surface].h, pal, (pal?depth:8), -1, -1);
|
||||
memcpy(file->frame, surfaces[surface].p, surfaces[surface].w*surfaces[surface].h);
|
||||
gif::addFrame(file, 0);
|
||||
gif::close(file);
|
||||
gif::close(file);*/
|
||||
}
|
||||
|
||||
void freesurf(uint8_t surface) {
|
||||
|
||||
Reference in New Issue
Block a user