Well, it works on K4NT - all of the formats. But picture is still inverted as in case of calling Screen:fb2pgm() function with 8bpp parameter. Black is white and white is black.
And maybe it's better to modify "Screen:" functions in lua than add three more compiled files? So any advanced user can modify this module without recompiling of C source - to fix some incompatibility or to add his own features.
At this moment I have changed
Code:
self:fb2bmp("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".bmp", true, nil)
with
Code:
if Device:getModel() == "Kindle4" then
self:fb2pgm("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".pgm", "bzip2 ", 8)
else
self:fb2bmp("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".bmp", true, nil)
end