- [NEW] Projecte ficat al dia
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,12 +1,14 @@
|
||||
syntax: glob
|
||||
|
||||
pepe
|
||||
pepe_debug
|
||||
recursos/*
|
||||
bin/*
|
||||
obj/*
|
||||
Debug/*
|
||||
Release/*
|
||||
data/*
|
||||
build/*
|
||||
*.suo
|
||||
*.sdf
|
||||
*.opensdf
|
||||
|
||||
2
Makefile
Normal file
2
Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
build:
|
||||
g++ -g *.cpp -lSDL2 -lSDL2_mixer -o pepe_debug
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "jdraw8.h"
|
||||
#include "jfile.h"
|
||||
#include <fstream>
|
||||
#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");
|
||||
|
||||
|
||||
5
lagueirtofile
Normal file
5
lagueirtofile
Normal file
@@ -0,0 +1,5 @@
|
||||
libs = -lSDL2 -lSDL2_mixer
|
||||
cppflags = -D DEBUG -g
|
||||
executable = pepe_debug
|
||||
sourcepath = .
|
||||
buildpath = build
|
||||
Reference in New Issue
Block a user