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

@@ -121,8 +121,17 @@ void Update_part_of_screen(short x, short y, short width, short height);
void Redraw_grid(short x, short y, unsigned short w, unsigned short h);
void Pixel_in_current_screen (word x,word y,byte color,int with_preview);
void Pixel_in_spare(word x,word y, byte color);
void Pixel_in_current_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);
/// Paint a single pixel in image only.
extern Func_pixel Pixel_in_current_screen;
/// Paint a single pixel in image AND on screen.
extern Func_pixel Pixel_in_current_screen_with_preview;
/// Sets ::Pixel_in_current_screen and ::Pixel_in_current_screen_with_preview
void Update_pixel_renderer(void);