mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fixed bug (oversight in refactoring framebuffer)
This commit is contained in:
4
einkfb.c
4
einkfb.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user