View Single Post
Old 04-14-2013, 04:37 AM   #154
dimasic
Enthusiast
dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'dimasic knows the difference between 'who' and 'whom'
 
Posts: 43
Karma: 10000
Join Date: Apr 2013
Device: Kindle 4NT
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

Last edited by dimasic; 04-14-2013 at 04:41 AM.
dimasic is offline   Reply With Quote