summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-05-30 17:25:02 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-05-30 17:25:02 (GMT)
commitcad644824d3e1bc5aa1dc72404c2f54cf5342e92 (patch)
tree5c9d5eb7161250d021bf7f18ebbadfa3cbc5d515 /src
parentd8051926c84339d551cd75e8cea2811253cc4845 (diff)
downloadpowder-cad644824d3e1bc5aa1dc72404c2f54cf5342e92.zip
powder-cad644824d3e1bc5aa1dc72404c2f54cf5342e92.tar.gz
Defaults for tpt.drawtext method
Diffstat (limited to 'src')
-rw-r--r--src/luaconsole.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c
index c2034cb..7b8f63a 100644
--- a/src/luaconsole.c
+++ b/src/luaconsole.c
@@ -70,11 +70,11 @@ int luatpt_drawtext(lua_State* l)
int textx, texty, textred, textgreen, textblue, textalpha;
textx = luaL_optint(l, 1, 0);
texty = luaL_optint(l, 2, 0);
- string = luaL_optstring(l, 3, 0);
- textred = luaL_optint(l, 4, 0);
- textgreen = luaL_optint(l, 5, 0);
- textblue = luaL_optint(l, 6, 0);
- textalpha = luaL_optint(l, 7, 0);
+ string = luaL_optstring(l, 3, "");
+ textred = luaL_optint(l, 4, 255);
+ textgreen = luaL_optint(l, 5, 255);
+ textblue = luaL_optint(l, 6, 255);
+ textalpha = luaL_optint(l, 7, 255);
if(vid_buf!=NULL){
drawtext(vid_buf, textx, texty, string, textred, textgreen, textblue, textalpha);
return 0;