diff options
| author | Jacob1 <jfu614@gmail.com> | 2012-05-10 21:44:43 (GMT) |
|---|---|---|
| committer | Jacob1 <jfu614@gmail.com> | 2012-05-24 17:09:32 (GMT) |
| commit | bdc94208d22dd65d5796264b62d275114489b35e (patch) | |
| tree | ff70c235cb5a5e9adad9f2c13fa763ea6aae2e73 /src/graphics.c | |
| parent | 5edd224344b427f75f0740217e10cb4e44313a5d (diff) | |
| download | powder-bdc94208d22dd65d5796264b62d275114489b35e.zip powder-bdc94208d22dd65d5796264b62d275114489b35e.tar.gz | |
finish custom lua graphics functions
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c index 60d23b0..0c4c965 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1860,7 +1860,19 @@ void render_parts(pixel *vid) #ifdef LUACONSOLE if (lua_gr_func[t]) { - colr = luacon_graphics_update(t,i); + if (luacon_graphics_update(t,i, &pixel_mode, &cola, &colr, &colg, &colb, &firea, &firer, &fireg, &fireb)) + { + graphicscache[t].isready = 1; + graphicscache[t].pixel_mode = pixel_mode; + graphicscache[t].cola = cola; + graphicscache[t].colr = colr; + graphicscache[t].colg = colg; + graphicscache[t].colb = colb; + graphicscache[t].firea = firea; + graphicscache[t].firer = firer; + graphicscache[t].fireg = fireg; + graphicscache[t].fireb = fireb; + } } else if (ptypes[t].graphics_func) { |
