Quote:
Originally Posted by sadowski
And this is how it looks like:
|
Yes, it looks like the pitch size (bytes for a single line) is detected wrong, more precisely pitch size is less than actual one used in the framebuffer device otherwise the application would very likely have already crashed.
So you can just hack this line:
https://github.com/koreader/koreader..._linux.lua#L64 in the "koreader/ffi/framebuffer_linux.lua" file at line 64:
Code:
elseif vinfo.bits_per_pixel == 8 then
self.bb = BB.new(vinfo.xres, vinfo.yres, BB.TYPE_BB8, self.data, finfo.line_length)
else
this way:
Code:
elseif vinfo.bits_per_pixel == 8 then
self.bb = BB.new(vinfo.xres, vinfo.yres, BB.TYPE_BB8, self.data, finfo.line_length + 4)
else
or:
Code:
elseif vinfo.bits_per_pixel == 8 then
self.bb = BB.new(vinfo.xres, vinfo.yres, BB.TYPE_BB8, self.data, finfo.line_length + 8)
else
until you make it right.