Fixed the remaining problems with the rectangles. The code was really bad, messing up with RBX and RAY... i must have been _very_ tired when i wrote it :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@430 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
9bc64e8adb
commit
48b1d75ff5
@ -4306,12 +4306,12 @@ void Rectangle_Degrade_0_5(void)
|
||||
|
||||
if(Min(RAX,RBX)<Limite_Gauche_Zoom) // On dépasse du zoom à gauche
|
||||
{
|
||||
decalage_largeur += Limite_Gauche_Zoom - Min(RAX,RAY);
|
||||
decalage_largeur += Limite_Gauche_Zoom - Min(RAX,RBX);
|
||||
decalage_gauche = Limite_Gauche_Zoom;
|
||||
}
|
||||
|
||||
if(Max(RAX,RAY)>Limite_visible_Droite_Zoom) // On dépasse du zoom à droite
|
||||
decalage_largeur += Max(RAX,RAY) - Limite_visible_Droite_Zoom;
|
||||
if(Max(RAX,RBX)>Limite_visible_Droite_Zoom) // On dépasse du zoom à droite
|
||||
decalage_largeur += Max(RAX,RBX) - Limite_visible_Droite_Zoom;
|
||||
|
||||
if(Min(RAY,RBY)<Limite_Haut_Zoom) // On dépasse du zoom en haut
|
||||
{
|
||||
@ -4320,7 +4320,7 @@ void Rectangle_Degrade_0_5(void)
|
||||
}
|
||||
|
||||
if(Max(RAY,RBY)>Limite_visible_Bas_Zoom) // On dépasse du zoom en bas
|
||||
decalage_hauteur += Max(RAX,RAY) + Limite_visible_Bas_Zoom;
|
||||
decalage_hauteur += Max(RAY,RBY) - Limite_visible_Bas_Zoom;
|
||||
|
||||
if(largeur > decalage_largeur)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user