Skip to content

Commit 3415dda

Browse files
committed
Resizing down PNG images and removing scaling-down code.
1 parent 85c6c7b commit 3415dda

19 files changed

+0
-13
lines changed

src/PCGfxEngine.c

-13
Original file line numberDiff line numberDiff line change
@@ -242,29 +242,16 @@ present_frame(void)
242242
int
243243
loadBmp(char* path, char* filename, char* pathfilename, char* pathdc, int noImage)
244244
{
245-
246245
SDL_FreeSurface(imagesBMP[noImage]);
247-
248246
SDL_Surface* temp;
249247

250248
if ((temp = IMG_Load(pathfilename)) == NULL)
251249
{
252250
fprintf(stderr, "Error: %s\n", SDL_GetError());
253-
254-
#ifndef GP2X_VERSION
255-
chdir("/usr/gp2x");
256-
execl("/usr/gp2x/gp2xmenu", "/usr/gp2x/gp2xmenu", NULL);
257-
#endif
258251
exit(1);
259252
}
260-
// if (SDL_MUSTLOCK(temp)) SDL_LockSurface(temp);
261-
262-
SDL_Surface* tmpS = NULL;
263-
tmpS = zoomSurface(temp, 0.5, 0.5, 0); // scale the image x0.5 when loaded into memory
264-
temp = tmpS;
265253

266254
imagesBMP[noImage] = SDL_ConvertSurface(temp, screen->format, SDL_SWSURFACE);
267-
// if (SDL_MUSTLOCK(temp)) SDL_UnlockSurface(temp);
268255
SDL_FreeSurface(temp);
269256

270257
if ((noImage == 1) || (noImage == 3))

src/romdisk/fond1.png

-4.24 KB
Loading

src/romdisk/fond10.png

-5.99 KB
Loading

src/romdisk/fond11.png

-5.94 KB
Loading

src/romdisk/fond12.png

-5.61 KB
Loading

src/romdisk/fond13.png

-5.35 KB
Loading

src/romdisk/fond2.png

-5.13 KB
Loading

src/romdisk/fond3.png

-4.97 KB
Loading

src/romdisk/fond4.png

-5.01 KB
Loading

src/romdisk/fond5.png

-4.76 KB
Loading

src/romdisk/fond6.png

-3.99 KB
Loading

src/romdisk/fond7.png

-5.07 KB
Loading

src/romdisk/fond8.png

-4.48 KB
Loading

src/romdisk/fond9.png

-4.23 KB
Loading

src/romdisk/nextlevel1.png

-4.55 KB
Loading

src/romdisk/nextlevel2.png

-4.87 KB
Loading

src/romdisk/sprite1.png

-15.2 KB
Loading

src/romdisk/title-gp2x.png

-79 KB
Binary file not shown.

src/romdisk/title.png

-20.7 KB
Loading

0 commit comments

Comments
 (0)