Fix lasso, broken in last commit

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1704 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2011-01-30 14:42:33 +00:00
parent 1b0141367e
commit 4d3431afd4

View File

@ -1161,8 +1161,11 @@ void Capture_brush_with_lasso(int vertices, short * points,short clear)
} }
// Grab palette // Grab palette
memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette)); memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette));
// Remap (no change) // Init colormap
Remap_brush(); for (temp=0; temp<256; temp++)
Brush_colormap[temp]=temp;
// Copy Brush to original
memcpy(Brush_original_pixels, Brush, (long)Brush_width*Brush_height);
// On centre la prise sur la brosse // On centre la prise sur la brosse
Brush_offset_X=(Brush_width>>1); Brush_offset_X=(Brush_width>>1);