From cad644824d3e1bc5aa1dc72404c2f54cf5342e92 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 30 May 2011 18:25:02 +0100 Subject: [PATCH] Defaults for tpt.drawtext method --- src/luaconsole.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/luaconsole.c b/src/luaconsole.c index c2034cb19..7b8f63aa8 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;