forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya se dibuja correctamente el gif en la pantalla
This commit is contained in:
@@ -13,9 +13,9 @@ static jSurface jScreen;
|
||||
static jSurface jDestSurf;
|
||||
static jSurface jSourceSurf = NULL;
|
||||
static Uint32 paleta[256];
|
||||
static int jWidth = 320;
|
||||
static int jHeight = 240;
|
||||
static int transparentColor = 0;
|
||||
static int jWidth = 256;
|
||||
static int jHeight = 128;
|
||||
static int transparentColor = 255;
|
||||
|
||||
void pInit(SDL_Renderer *renderer, int w, int h)
|
||||
{
|
||||
@@ -140,8 +140,8 @@ void pFlip(SDL_Renderer *renderer)
|
||||
for (int i = 0; i < jWidth * jHeight; ++i)
|
||||
pixels[i] = paleta[jScreen->data[i]];
|
||||
SDL_UnlockTexture(jTex);
|
||||
SDL_RenderCopy(renderer, jTex, NULL, NULL);
|
||||
//SDL_RenderPresent(jRen);
|
||||
SDL_Rect rect = {0,64,256,128};
|
||||
SDL_RenderCopy(renderer, jTex, NULL, &rect);
|
||||
}
|
||||
|
||||
void pPutPixel(int x, int y, Uint8 color)
|
||||
|
||||
Reference in New Issue
Block a user