[layers] work on layer sharing (still stable)

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1045 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-09-28 21:01:29 +00:00
parent 057d5e76e4
commit 2fd88b81bb
8 changed files with 30 additions and 16 deletions

10
misc.c
View File

@@ -175,16 +175,16 @@ void Hide_current_image_with_stencil(byte color, byte * stencil)
int nb_pixels=0; //ECX
//al=color
//edi=Screen_pixels
byte* Pixel_Courant=Screen_pixels; //dl
byte* pixel=Main_backups->Pages->Image[Main_current_layer];
int i;
nb_pixels=Main_image_height*Main_image_width;
for(i=0;i<nb_pixels;i++)
{
if (stencil[*Pixel_Courant]==0)
*Pixel_Courant=color;
Pixel_Courant++;
if (stencil[*pixel]==0)
*pixel=color;
pixel++;
}
}
@@ -192,7 +192,7 @@ void Hide_current_image(byte color)
// Effacer l'image courante avec une certaine couleur
{
memset(
Main_screen ,
Main_backups->Pages->Image[Main_current_layer],
color ,
Main_image_width * Main_image_height
);