diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-24 02:28:03 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-24 02:28:03 +0000 |
commit | 6af0cfdac008c6d5b5ed06f33cbb2162a1cbaf83 (patch) | |
tree | 73532ac2233723fc4c75f62276d889e01001144e /apps | |
parent | 6f6cfed6cea3f73d0628b6981290c61e611d7ca5 (diff) |
Lua: /me should learn about C arrays.. :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21065 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 749acc3831..692106e24d 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -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) |