mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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:
parent
6f6cfed6ce
commit
6af0cfdac0
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ static fb_data* rli_element(lua_State *L)
|
||||||
"index out of range");
|
"index out of range");
|
||||||
|
|
||||||
/* return element address */
|
/* 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)
|
static int rli_set(lua_State *L)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue