From 1f672681bc17e95c5c11519ad62363616f7e4c41 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 8 Feb 2010 19:22:26 +0000 Subject: [PATCH] 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 --- graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.c b/graph.c index 5dd29cb1..da2eb065 100644 --- a/graph.c +++ b/graph.c @@ -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);