Fix part of issue 459: In anim mode, Color-replacer didn't refresh the screen

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1943 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-04-08 14:45:56 +00:00
parent 020e57846b
commit 064bbebc5b
4 changed files with 16 additions and 28 deletions

View File

@@ -229,21 +229,6 @@ byte Read_pixel_from_brush (word x, word y)
return *(Brush + y * Brush_width + x);
}
void Replace_a_color(byte old_color, byte new_color)
{
word x;
word y;
// Update all pixels
for (y=0; y<Main_image_height; y++)
for (x=0; x<Main_image_width; x++)
if (Read_pixel_from_current_layer(x,y) == old_color)
Pixel_in_current_screen(x,y,new_color);
Update_rect(0,0,0,0); // On peut TOUT a jour
// C'est pas un problème car il n'y a pas de preview
}
// FIXME: move to graph.c, it's the only caller
void Ellipse_compute_limites(short horizontal_radius,short vertical_radius)
{
Ellipse_horizontal_radius_squared =