diff --git a/.gitignore b/.gitignore index 2c6dd3f..87a2b2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,14 @@ syntax: glob pepe +pepe_debug recursos/* bin/* obj/* Debug/* Release/* data/* +build/* *.suo *.sdf *.opensdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3d7c305 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +build: + g++ -g *.cpp -lSDL2 -lSDL2_mixer -o pepe_debug diff --git a/gif.c b/gif.h similarity index 100% rename from gif.c rename to gif.h diff --git a/jdraw8.cpp b/jdraw8.cpp index e7dc08e..7987b99 100644 --- a/jdraw8.cpp +++ b/jdraw8.cpp @@ -1,7 +1,7 @@ #include "jdraw8.h" #include "jfile.h" #include -#include "gif.c" +#include "gif.h" #ifdef GCWZERO #define SCREEN_WIDTH 320 @@ -31,7 +31,7 @@ void JD8_Init(const char *title) { main_palette = (JD8_Palette)calloc( 1, 256 * sizeof(uint32_t) ); pixel_data = (Uint32*)calloc(1, 320 * 200 * 4); // 1048576 ); - sdlWindow = SDL_CreateWindow( title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); + sdlWindow = SDL_CreateWindow( title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); sdlRenderer = SDL_CreateRenderer(sdlWindow, -1, 0); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); diff --git a/lagueirtofile b/lagueirtofile new file mode 100644 index 0000000..cb818db --- /dev/null +++ b/lagueirtofile @@ -0,0 +1,5 @@ +libs = -lSDL2 -lSDL2_mixer +cppflags = -D DEBUG -g +executable = pepe_debug +sourcepath = . +buildpath = build