Sparc CPU does not like accessing non-aligned things. Depack some structures so the program don't crash. We should probably fix every struct, but I'm too lazy to check all of them right now (could corrupt saving and/or loading).

Added Gürkan Sengün to the bugfinders as he found the problem. Thanks !


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@759 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-04-29 17:28:44 +00:00
parent 1eeed5aca4
commit 506ea20d36
6 changed files with 22 additions and 17 deletions

2
op_c.c
View File

@@ -962,7 +962,7 @@ void GS_Generate(T_Gradient_set * ds,T_Cluster_set * cs)
int diff; // difference de chrominance courante
// Pour chacun des clusters … traiter
for (ic=1;ic<cs->nb;ic++)
for (ic=0;ic<cs->nb;ic++)
{
// On recherche le dgrad le plus proche de la chrominance du cluster
best_gradient=-1;