OSX ready, encara no compila. Implementació del lector de GIFs quasi acabada

This commit is contained in:
2016-02-19 11:55:33 +01:00
parent d9d74c7f36
commit 8074486a63
16 changed files with 1099 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ SDL_Window* sdlWindow = NULL;
SDL_Renderer* sdlRenderer = NULL;
SDL_Texture* sdlTexture = NULL;
void JD8_Init(char *title) {
void JD8_Init(const char *title) {
screen = (JD8_Surface)calloc( 1, 64000 );
main_palette = (JD8_Palette)calloc( 1, 768 );
pixel_data = (Uint32*)calloc(1, 320 * 200 * 4); // 1048576 );
@@ -50,7 +50,7 @@ JD8_Surface JD8_NewSurface() {
return surface;
}
JD8_Surface JD8_LoadSurface(char *file) {
JD8_Surface JD8_LoadSurface(const char *file) {
int filesize = 0;
char *buffer = JF_GetBufferFromResource(file, filesize);
@@ -71,7 +71,7 @@ JD8_Surface JD8_LoadSurface(char *file) {
return image;
}
JD8_Palette JD8_LoadPalette(char *file) {
JD8_Palette JD8_LoadPalette(const char *file) {
int filesize = 0;
char *buffer = NULL;
buffer = JF_GetBufferFromResource(file, filesize);