Don't use .bmp and .gif anymore, use .png for all lossless graphics.

This commit is contained in:
Guus Sliepen 2011-08-27 16:18:29 +02:00
parent 3dcea6c81f
commit d6c17d176f
5 changed files with 32 additions and 32 deletions

View File

@ -490,25 +490,25 @@ int galaxyMap()
char string[25];
engine.cursor_x = engine.cursor_y = 500;
shape[0] = loadImage("gfx/cursor.bmp");
shape[0] = loadImage("gfx/cursor.png");
// Icons 1 - 29
for (int i = 0 ; i < 26 ; i++)
{
sprintf(string, "gfx/icon%d.bmp", (i + 1));
sprintf(string, "gfx/icon%d.png", (i + 1));
shape[i + 1] = loadImage(string);
}
shape[27] = loadImage("gfx/buyIcon.bmp");
shape[28] = loadImage("gfx/sellIcon.bmp");
shape[27] = loadImage("gfx/buyIcon.png");
shape[28] = loadImage("gfx/sellIcon.png");
shape[29] = loadImage("gfx/firefly1.png");
// Planets 30 - 39
shape[30] = loadImage("gfx/planet_sun.gif");
shape[31] = loadImage("gfx/planet_green.gif");
shape[32] = loadImage("gfx/planet_blue.gif");
shape[33] = loadImage("gfx/planet_red.gif");
shape[34] = loadImage("gfx/planet_orange.gif");
shape[30] = loadImage("gfx/planet_sun.png");
shape[31] = loadImage("gfx/planet_green.png");
shape[32] = loadImage("gfx/planet_blue.png");
shape[33] = loadImage("gfx/planet_red.png");
shape[34] = loadImage("gfx/planet_orange.png");
// Faces (as defines)
shape[FACE_CHRIS] = loadImage("gfx/face_chris.png");

View File

@ -182,10 +182,10 @@ void loadFont()
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
{
#if USEPACK
unpack("gfx/smallFont.bmp", PAK_FONT);
unpack("gfx/smallFont.png", PAK_FONT);
image = IMG_Load_RW(engine.sdlrw, 1);
#else
image = IMG_Load("gfx/smallFont.bmp");
image = IMG_Load("gfx/smallFont.png");
#endif
if (image == NULL) {

View File

@ -168,8 +168,8 @@ int doTitle()
loadBackground("gfx/spirit.jpg");
SDL_Surface *prlogo, *sflogo;
prlogo = loadImage("gfx/prlogo.gif");
sflogo = loadImage("gfx/sflogo.gif");
prlogo = loadImage("gfx/prlogo.png");
sflogo = loadImage("gfx/sflogo.png");
int prx = ((800 - prlogo->w) / 2);
int pry = ((600 - prlogo->h) / 2);

View File

@ -1,30 +1,30 @@
0 gfx/plasmaGreen.png
1 gfx/plasmaRed.png
2 gfx/rocket1.bmp
3 gfx/rocket2.bmp
4 gfx/explode1.bmp
5 gfx/explode2.bmp
6 gfx/explode3.bmp
7 gfx/explode4.bmp
2 gfx/rocket1.png
3 gfx/rocket2.png
4 gfx/explode1.png
5 gfx/explode2.png
6 gfx/explode3.png
7 gfx/explode4.png
8 gfx/explode05.png
9 gfx/explode06.png
10 gfx/explode07.png
11 gfx/explode08.png
12 gfx/explode9.bmp
13 gfx/explode10.bmp
14 gfx/explode11.bmp
15 gfx/explode12.bmp
16 gfx/explode13.bmp
17 gfx/explode14.bmp
18 gfx/explode15.bmp
19 gfx/explode16.bmp
12 gfx/explode9.png
13 gfx/explode10.png
14 gfx/explode11.png
15 gfx/explode12.png
16 gfx/explode13.png
17 gfx/explode14.png
18 gfx/explode15.png
19 gfx/explode16.png
20 gfx/elec1.png
21 gfx/elec2.png
22 gfx/elec3.png
23 gfx/elec4.png
24 gfx/dollar.gif
25 gfx/rocket.gif
26 gfx/heart.gif
24 gfx/dollar.png
25 gfx/rocket.png
26 gfx/heart.png
27 gfx/plasmaAmmo.png
28 gfx/plasmaRate.png
29 gfx/plasmaDamage.png

View File

@ -26,8 +26,8 @@
27 gfx/merc2.png
30 gfx/escort1.png
31 gfx/escort2.png
32 gfx/barrier.gif
33 gfx/barrier.gif
32 gfx/barrier.png
33 gfx/barrier.png
34 gfx/mobileShield1.png
35 gfx/mobileShield2.png
36 gfx/drone1.png