Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.

Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-10-29 15:22:45 +00:00
parent 4d20be0053
commit 1934425972
12 changed files with 208 additions and 35 deletions

6
misc.c
View File

@@ -206,12 +206,12 @@ void Init_chrono(dword delay)
return;
}
void Pixel_in_brush (word x,word y,byte color)
void Pixel_in_brush (word x, word y, byte color)
{
*(Brush+y*Brush_width+x)=color;
*(Brush + y * Brush_width + x)=color;
}
byte Read_pixel_from_brush (word x,word y)
byte Read_pixel_from_brush (word x, word y)
{
return *(Brush + y * Brush_width + x);
}