fixed bug (oversight in refactoring framebuffer)

This commit is contained in:
HW
2011-12-02 23:14:07 +01:00
parent f06b0f1dd3
commit 485890f0fd

View File

@@ -78,9 +78,9 @@ static int openFrameBuffer(lua_State *L) {
}
/* mmap the framebuffer */
fb->buf.data = mmap(0, fb->finfo.smem_len,
fb->buf->data = mmap(0, fb->finfo.smem_len,
PROT_READ | PROT_WRITE, MAP_SHARED, fb->fd, 0);
if(fb->buf.data == MAP_FAILED) {
if(fb->buf->data == MAP_FAILED) {
return luaL_error(L, "cannot mmap framebuffer");
}
#else