diff --git a/src/brush.c b/src/brush.c index ca7fff7a..c44f8663 100644 --- a/src/brush.c +++ b/src/brush.c @@ -1299,6 +1299,9 @@ void Capture_brush_with_lasso(int vertices, short * points,short clear) } } } + if (clear) + Update_part_of_screen(start_x,start_y,end_x-start_x+1,end_y-start_y+1); + // Grab palette memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette)); // Init colormap diff --git a/src/brush_ops.c b/src/brush_ops.c index 046621c0..c9e343a9 100644 --- a/src/brush_ops.c +++ b/src/brush_ops.c @@ -491,7 +491,6 @@ void Brush_0_5(void) Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height; } - End_of_modification(); End_of_modification(); Return_to_draw_mode(); } @@ -605,6 +604,9 @@ void Polybrush_12_8(void) free(Polyfill_table_of_points); Polyfill_table_of_points = NULL; + if (click==RIGHT_SIDE) + End_of_modification(); + // On raffiche l'écran pour effacer les traits en xor et pour raffraichir // l'écran si on a découpé une partie de l'image en prenant la brosse. Display_all_screen(); @@ -617,8 +619,6 @@ void Polybrush_12_8(void) Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height; } - if (click==RIGHT_SIDE) - End_of_modification(); Return_to_draw_mode(); Display_cursor(); }