From 4d3431afd4e3f2d657890553900d0f6b945ae530 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sun, 30 Jan 2011 14:42:33 +0000 Subject: [PATCH] Fix lasso, broken in last commit git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1704 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/brush.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/brush.c b/src/brush.c index 0d34cc96..4f210afd 100644 --- a/src/brush.c +++ b/src/brush.c @@ -1161,8 +1161,11 @@ void Capture_brush_with_lasso(int vertices, short * points,short clear) } // Grab palette memcpy(Brush_original_palette, Main_palette,sizeof(T_Palette)); - // Remap (no change) - Remap_brush(); + // Init colormap + 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 Brush_offset_X=(Brush_width>>1);