summaryrefslogtreecommitdiff
path: root/src/cat/LegacyLuaAPI.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-08 02:50:43 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-08 02:50:43 (GMT)
commitca143945be21c89a63efca7303b8bb2f1e190fc7 (patch)
tree1fe5e479b7df5d9f2111bff8ba3ebeb09678d31f /src/cat/LegacyLuaAPI.cpp
parent158b05402348f6eae3ed08f40676c1b8adf0b268 (diff)
downloadpowder-ca143945be21c89a63efca7303b8bb2f1e190fc7.zip
powder-ca143945be21c89a63efca7303b8bb2f1e190fc7.tar.gz
change tpt.fillrect dimentions to old tpt ones, move brush list generating out of BuildMenus
Diffstat (limited to 'src/cat/LegacyLuaAPI.cpp')
-rw-r--r--src/cat/LegacyLuaAPI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp
index 90baaa2..8c52bfe 100644
--- a/src/cat/LegacyLuaAPI.cpp
+++ b/src/cat/LegacyLuaAPI.cpp
@@ -1333,8 +1333,8 @@ int luatpt_fillrect(lua_State* l)
int x,y,w,h,r,g,b,a;
x = luaL_optint(l, 1, 0)+1;
y = luaL_optint(l, 2, 0)+1;
- w = luaL_optint(l, 3, 10)+1;
- h = luaL_optint(l, 4, 10)+1;
+ w = luaL_optint(l, 3, 10)-1;
+ h = luaL_optint(l, 4, 10)-1;
r = luaL_optint(l, 5, 255);
g = luaL_optint(l, 6, 255);
b = luaL_optint(l, 7, 255);