Lua: /me should learn about C arrays.. :/

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21065 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-05-24 02:28:03 +00:00
parent 6f6cfed6ce
commit 6af0cfdac0

View file

@ -118,7 +118,7 @@ static fb_data* rli_element(lua_State *L)
"index out of range");
/* return element address */
return &a->data[a->height * (y - 1) + (x - 1)];
return &a->data[a->width * (y - 1) + (x - 1)];
}
static int rli_set(lua_State *L)