Change rendering system to use function pointers, see Issue 31 c38 : preliminary work to make the same executable handle Layers or Anims. Fixed an old issue where Lasso-ing a brush with right mouse button wouldn't erase cleanly (visual). Fixed an old issue where picking colors in layer 5 would not 'see' through layers.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1906 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-02-22 23:47:53 +00:00
parent 8ea1ab7fc8
commit 55d0889bc8
10 changed files with 189 additions and 89 deletions

View File

@@ -3011,13 +3011,19 @@ void Load_CM5(T_IO_Context* context)
Palette_loaded(context);
if (Constraint_mode != 1)
Constraint_mode = 1;
if (Read_byte(file, &value)!=1)
File_error = 2;
// This forces the creation of 5 layers total :
// Needed because the "pixel" functions will seek layer 4
Set_loading_layer(context, 4);
// Now select layer 0 again
Set_loading_layer(context, 0);
if (Constraint_mode != 1)
Constraint_mode = 1;
for(ty=0; ty<context->Height; ty++)
for(tx=0; tx<context->Width; tx++)
{