Some work on brush remapping

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1700 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-01-29 21:20:54 +00:00
parent 40a7bcf40e
commit e01b310317
11 changed files with 110 additions and 32 deletions

View File

@@ -340,7 +340,7 @@ void Rotate_270_deg_lowlevel(byte * source, byte * dest, short width, short heig
// Replace une couleur par une autre dans un buffer
void Remap_general_lowlevel(byte * conversion_table,byte * buffer,short width,short height,short buffer_width)
void Remap_general_lowlevel(byte * conversion_table,byte * in_buffer, byte *out_buffer,short width,short height,short buffer_width)
{
int dx,cx;
@@ -350,10 +350,12 @@ void Remap_general_lowlevel(byte * conversion_table,byte * buffer,short width,sh
// Pour chaque pixel
for(cx=width;cx>0;cx--)
{
*buffer = conversion_table[*buffer];
buffer++;
*out_buffer = conversion_table[*in_buffer];
in_buffer++;
out_buffer++;
}
buffer += buffer_width-width;
in_buffer += buffer_width-width;
out_buffer += buffer_width-width;
}
}