Stencil mode now 'reads' from only the current layer, instead of all visible layers.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1328 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-02-08 19:22:26 +00:00
parent 6f08d59f01
commit 1f672681bc

View File

@ -2673,7 +2673,7 @@ void Display_pixel(word x,word y,byte color)
// La Loupe est gérée par appel à Pixel_preview().
{
if ( ( (!Sieve_mode) || (Effect_sieve(x,y)) )
&& (!((Stencil_mode) && (Stencil[Read_pixel_from_current_screen(x,y)])))
&& (!((Stencil_mode) && (Stencil[Read_pixel_from_current_layer(x,y)])))
&& (!((Mask_mode) && (Mask_table[Read_pixel_from_spare_screen(x,y)]))) )
{
color=Effect_function(x,y,color);