Fix issue 320: Image corruption when running a Lua script after loading 24bit image

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1366 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-02-24 02:31:31 +00:00
parent c26b09a3d3
commit 827ad2da1c
3 changed files with 6 additions and 10 deletions

4
main.c
View File

@@ -811,8 +811,8 @@ int Init_program(int argc,char * argv[])
Init_context_layered_image(&context, spare_filename, spare_directory);
Load_image(&context);
Destroy_context(&context);
End_of_modification();
Redraw_layered_image();
End_of_modification();
Button_Page();
// no break ! proceed with the other file now
@@ -820,8 +820,8 @@ int Init_program(int argc,char * argv[])
Init_context_layered_image(&context, main_filename, main_directory);
Load_image(&context);
Destroy_context(&context);
End_of_modification();
Redraw_layered_image();
End_of_modification();
Hide_cursor();
Compute_optimal_menu_colors(Main_palette);