add Pixel_in_layer() and Read_pixel_from_layer()

To access another layer than the current layer
This commit is contained in:
Thomas Bernard
2018-12-02 23:27:07 +01:00
committed by Adrien Destugues
parent 1bffaacead
commit 7b21ac8a90
2 changed files with 82 additions and 9 deletions

View File

@@ -130,8 +130,11 @@ void Redraw_grid(short x, short y, unsigned short w, unsigned short h);
void Pixel_in_spare(word x,word y, byte color);
void Pixel_in_current_layer(word x,word y, byte color);
void Pixel_in_layer(int layer, word x,word y, byte color);
byte Read_pixel_from_current_screen (word x,word y);
byte Read_pixel_from_current_layer(word x,word y);
byte Read_pixel_from_layer(int layer, word x,word y);
/// Paint a single pixel in image only.
#define Pixel_in_current_screen(x,y,c) Pixel_in_current_screen_with_opt_preview(x,y,c,0)