gfx2.dat is now replaced by an editable "skin" file: 'gfx2gui.gif', and a reference INI file: 'gfx2def.ini'.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@557 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-01-27 00:10:02 +00:00
parent c018c13352
commit e302f2d26a
15 changed files with 803 additions and 305 deletions

View File

@@ -182,3 +182,10 @@ SDL_Color Conversion_couleur_SDL(byte Index)
Couleur.unused = 255;
return Couleur;
}
// Lecture d'un pixel pour une surface SDL.
// Attention, ne fonctionne que pour les surfaces 8-bit
byte Sdl_Get_pixel_8(SDL_Surface *Bmp, int X, int Y)
{
return ((byte *)(Bmp->pixels))[(Y*Bmp->pitch+X)];
}