Fix second part of issue 459 : In anim mode, polybrush-grab with the right mouse button didn't clear the cut area.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1944 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2012-04-09 14:55:44 +00:00
parent 064bbebc5b
commit 6316fc2add
2 changed files with 6 additions and 3 deletions

View File

@ -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 // Grab palette
memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette)); memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette));
// Init colormap // Init colormap

View File

@ -491,7 +491,6 @@ void Brush_0_5(void)
Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height; Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height;
} }
End_of_modification();
End_of_modification(); End_of_modification();
Return_to_draw_mode(); Return_to_draw_mode();
} }
@ -605,6 +604,9 @@ void Polybrush_12_8(void)
free(Polyfill_table_of_points); free(Polyfill_table_of_points);
Polyfill_table_of_points = NULL; 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 // 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. // l'écran si on a découpé une partie de l'image en prenant la brosse.
Display_all_screen(); Display_all_screen();
@ -617,8 +619,6 @@ void Polybrush_12_8(void)
Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height; Brush_offset_Y=(Brush_offset_Y/Snap_height)*Snap_height;
} }
if (click==RIGHT_SIDE)
End_of_modification();
Return_to_draw_mode(); Return_to_draw_mode();
Display_cursor(); Display_cursor();
} }