More manual translations, to make the bulk process easier

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@683 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-03-17 19:09:43 +00:00
parent 66f9154548
commit f69cf6b8f7
44 changed files with 954 additions and 959 deletions

View File

@@ -58,9 +58,9 @@ void Afficher_partie_de_l_ecran_Tall (word Largeur,word Hauteur,word Largeur_ima
{
byte* Dest=Ecran; //On va se mettre en 0,0 dans l'écran (Dest)
byte* Src=Principal_Decalage_Y*Largeur_image+Principal_Decalage_X+Principal_Ecran; //Coords de départ ds la source (Src)
int dx;
int y;
for(dx=Hauteur;dx!=0;dx--)
for(y=Hauteur;y!=0;y--)
// Pour chaque ligne
{
// On fait une copie de la ligne
@@ -130,11 +130,11 @@ void Ligne_horizontale_XOR_Tall(word Pos_X,word Pos_Y,word Largeur)
void Ligne_verticale_XOR_Tall(word Pos_X,word Pos_Y,word Hauteur)
{
int i;
byte Color;
byte color;
for (i=Pos_Y*2;i<(Pos_Y+Hauteur)*2;i++)
{
Color=*(Ecran+Pos_X+i*Largeur_ecran);
*(Ecran+Pos_X+i*Largeur_ecran)=~Color;
color=*(Ecran+Pos_X+i*Largeur_ecran);
*(Ecran+Pos_X+i*Largeur_ecran)=~color;
}
}
@@ -145,13 +145,13 @@ void Display_brush_Color_Tall(word Pos_X,word Pos_Y,word Decalage_X,word Decalag
// Src = Position dans la brosse
byte* Src = Brosse + Decalage_Y * Largeur_brosse + Decalage_X;
word DX,CX;
word x,y;
// Pour chaque ligne
for(DX = Hauteur;DX > 0; DX--)
for(y = Hauteur;y > 0; y--)
{
// Pour chaque pixel
for(CX = Largeur;CX > 0; CX--)
for(x = Largeur;x > 0; x--)
{
// On vérifie que ce n'est pas la transparence
if(*Src != Couleur_de_transparence)
@@ -180,12 +180,12 @@ void Display_brush_Mono_Tall(word Pos_X, word Pos_Y,
// l'écran
byte* Src=Largeur_brosse*Decalage_Y+Decalage_X+Brosse; // Src = adr ds
// la brosse
int dx,cx;
int x,y;
for(dx=Hauteur;dx!=0;dx--)
for(y=Hauteur;y!=0;y--)
//Pour chaque ligne
{
for(cx=Largeur;cx!=0;cx--)
for(x=Largeur;x!=0;x--)
//Pour chaque pixel
{
if (*Src!=Couleur_de_transparence)
@@ -210,9 +210,9 @@ void Clear_brush_Tall(word Pos_X,word Pos_Y,__attribute__((unused)) word Decalag
{
byte* Dest=Ecran+Pos_X+Pos_Y*2*Largeur_ecran; //On va se mettre en 0,0 dans l'écran (Dest)
byte* Src = ( Pos_Y + Principal_Decalage_Y ) * Largeur_image + Pos_X + Principal_Decalage_X + Principal_Ecran; //Coords de départ ds la source (Src)
int dx;
int y;
for(dx=Hauteur;dx!=0;dx--)
for(y=Hauteur;y!=0;y--)
// Pour chaque ligne
{
// On fait une copie de la ligne
@@ -228,20 +228,20 @@ void Clear_brush_Tall(word Pos_X,word Pos_Y,__attribute__((unused)) word Decalag
}
// Affiche une brosse (arbitraire) à l'écran
void Affiche_brosse_Tall(byte * B, word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_brosse)
void Affiche_brosse_Tall(byte * brush, word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_brosse)
{
// Dest = Position à l'écran
byte* Dest = Ecran + Pos_Y * 2 * Largeur_ecran + Pos_X;
// Src = Position dans la brosse
byte* Src = B + Decalage_Y * Largeur_brosse + Decalage_X;
byte* Src = brush + Decalage_Y * Largeur_brosse + Decalage_X;
word DX,CX;
word x,y;
// Pour chaque ligne
for(DX = Hauteur;DX > 0; DX--)
for(y = Hauteur;y > 0; y--)
{
// Pour chaque pixel
for(CX = Largeur;CX > 0; CX--)
for(x = Largeur;x > 0; x--)
{
// On vérifie que ce n'est pas la transparence
if(*Src != Couleur_de_transparence)
@@ -264,13 +264,13 @@ void Remap_screen_Tall(word Pos_X,word Pos_Y,word Largeur,word Hauteur,byte * Ta
{
// Dest = coords a l'écran
byte* Dest = Ecran + Pos_Y * 2 * Largeur_ecran + Pos_X;
int dx,cx;
int x,y;
// Pour chaque ligne
for(dx=Hauteur*2;dx>0;dx--)
for(y=Hauteur*2;y>0;y--)
{
// Pour chaque pixel
for(cx=Largeur;cx>0;cx--)
for(x=Largeur;x>0;x--)
{
*Dest = Table_de_conversion[*Dest];
Dest ++;
@@ -306,12 +306,12 @@ void Afficher_partie_de_l_ecran_zoomee_Tall(
// Pour chaque ligne à zoomer
while(1)
{
int CX;
int x;
// On éclate la ligne
Zoomer_une_ligne(Src,Buffer,Loupe_Facteur,Largeur);
// On l'affiche Facteur fois, sur des lignes consécutives
CX = Loupe_Facteur*2;
x = Loupe_Facteur*2;
// Pour chaque ligne
do{
// On affiche la ligne zoomée
@@ -327,8 +327,8 @@ void Afficher_partie_de_l_ecran_zoomee_Tall(
Largeur*Loupe_Facteur,Hauteur);
return;
}
CX--;
}while (CX > 0);
x--;
}while (x > 0);
Src += Largeur_image;
}
// ATTENTION on n'arrive jamais ici !
@@ -343,7 +343,7 @@ void Display_brush_Color_zoom_Tall(word Pos_X,word Pos_Y,
byte * Buffer)
{
byte* Src = Brosse+Decalage_Y*Largeur_brosse + Decalage_X;
word DX = Pos_Y;
word y = Pos_Y;
byte bx;
// Pour chaque ligne
@@ -353,10 +353,10 @@ void Display_brush_Color_zoom_Tall(word Pos_X,word Pos_Y,
// On affiche facteur fois la ligne zoomée
for(bx=Loupe_Facteur;bx>0;bx--)
{
Afficher_une_ligne_transparente_a_l_ecran_Simple(Pos_X,DX*2,Largeur*Loupe_Facteur,Buffer,Couleur_de_transparence);
memcpy(Ecran + (DX*2 +1) * Largeur_ecran + Pos_X, Ecran + DX*2* Largeur_ecran + Pos_X, Largeur*Loupe_Facteur);
DX++;
if(DX==Pos_Y_Fin)
Afficher_une_ligne_transparente_a_l_ecran_Simple(Pos_X,y*2,Largeur*Loupe_Facteur,Buffer,Couleur_de_transparence);
memcpy(Ecran + (y*2 +1) * Largeur_ecran + Pos_X, Ecran + y*2* Largeur_ecran + Pos_X, Largeur*Loupe_Facteur);
y++;
if(y==Pos_Y_Fin)
{
return;
}
@@ -377,7 +377,7 @@ void Display_brush_Mono_zoom_Tall(word Pos_X, word Pos_Y,
{
byte* Src = Brosse + Decalage_Y * Largeur_brosse + Decalage_X;
int DX=Pos_Y*2;
int y=Pos_Y*2;
//Pour chaque ligne à zoomer :
while(1)
@@ -396,13 +396,13 @@ void Display_brush_Mono_zoom_Tall(word Pos_X, word Pos_Y,
{
// On affiche la ligne zoomée
Afficher_une_ligne_transparente_mono_a_l_ecran_Simple(
Pos_X, DX, Largeur * Loupe_Facteur,
Pos_X, y, Largeur * Loupe_Facteur,
Buffer, Couleur_de_transparence, Couleur
);
// On passe à la ligne suivante
DX++;
y++;
// On vérifie qu'on est pas à la ligne finale
if(DX == Pos_Y_Fin*2)
if(y == Pos_Y_Fin*2)
{
UpdateRect( Pos_X, Pos_Y,
Largeur * Loupe_Facteur, Pos_Y_Fin - Pos_Y );
@@ -421,7 +421,7 @@ void Clear_brush_zoom_Tall(word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y
{
// En fait on va recopier l'image non zoomée dans la partie zoomée !
byte* Src = Principal_Ecran + Decalage_Y * Largeur_image + Decalage_X;
int DX = Pos_Y;
int y = Pos_Y;
int bx;
// Pour chaque ligne à zoomer
@@ -432,12 +432,12 @@ void Clear_brush_zoom_Tall(word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y
// Pour chaque ligne
do{
Afficher_une_ligne_ecran_Tall(Pos_X,DX,
Afficher_une_ligne_ecran_Tall(Pos_X,y,
Largeur * Loupe_Facteur,Buffer);
// Ligne suivante
DX++;
if(DX==Pos_Y_Fin)
y++;
if(y==Pos_Y_Fin)
{
UpdateRect(Pos_X,Pos_Y,
Largeur*Loupe_Facteur,Pos_Y_Fin-Pos_Y);