Update master for comment on image size

This commit is contained in:
NuPogodi
2012-07-04 20:50:19 +03:00
committed by Qingping Hou
parent 2e975fa18d
commit 17585c2bf4

View File

@@ -135,9 +135,9 @@ function Screen:BMP(fn, pack) -- for 4bpp framebuffers only
if inputf then
local outputf, size = assert(io.open(fn,"wb"))
if math.max(G_width,G_height)>1000 then -- KDX(G)
size=string.char(0x98,0x8D,7,0) -- 0x00,0x72,0x06,0x00 > raw bytes in image 825*1200/2 = 0x00078D98 @ KDX(G)
size=string.char(0x98,0x8D,7,0) -- raw bytes in image 825*1200/2 = 0x00078D98 @ KDX(G)
else -- 600x800
size=string.char(0x80,0xA9,3,0) -- 0x80,0xA9,0x03,0x00 > raw bytes in image 600*800/2 = 0x0003A980 @ K2&3
size=string.char(0x80,0xA9,3,0) -- raw bytes in image 600*800/2 = 0x0003A980 @ K2&3
end
-- writing bmp-header
outputf:write(string.char(0x42,0x4D,0xF6,0xA9,3,0,0,0,0,0,0x76,0,0,0,40,0),