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:
		
							parent
							
								
									064bbebc5b
								
							
						
					
					
						commit
						6316fc2add
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user