Saving a picture and loading it back works, but there are struct misalignment problems, asved file will NOT be compatible with other tools

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@91 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-08-02 15:38:00 +00:00
parent aaf7bc09fa
commit 3bf7246855
5 changed files with 51 additions and 24 deletions

View File

@@ -612,7 +612,13 @@ byte Couleur_ILBM_line(word Pos_X, word Vraie_taille_ligne)
void Palette_256_to_64(T_Palette Palette)
{
UNIMPLEMENTED
int i;
for(i=0;i<256;i++)
{
Palette[i].R = Palette[i].B >> 2;
Palette[i].V = Palette[i].V >> 2;
Palette[i].B = Palette[i].R >> 2;
}
}
void Palette_64_to_256(T_Palette Palette)