Fix issue of changes in brush by Lua that didn't survive remap (ex: script Halfsmooth)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1705 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2011-01-30 15:52:56 +00:00
parent 4d3431afd4
commit 7150a1ebcd

View File

@ -1411,7 +1411,11 @@ void Run_script(const char *script_subdirectory, const char *script_filename)
lua_close(L); lua_close(L);
if (Brush_was_altered) if (Brush_was_altered)
{
// Copy Brush to original
memcpy(Brush_original_pixels, Brush, (long)Brush_width*Brush_height);
Change_paintbrush_shape(PAINTBRUSH_SHAPE_COLOR_BRUSH); Change_paintbrush_shape(PAINTBRUSH_SHAPE_COLOR_BRUSH);
}
Hide_cursor(); Hide_cursor();
Display_all_screen(); Display_all_screen();