2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
Qingping Hou
642375600b add more comments 2013-02-18 15:53:46 +08:00
Qingping Hou
5edc2db12b properly set up shadow buffer's pitch and bug fix on eink update
previously, counters never reach 0!
2013-02-18 15:48:33 +08:00
Qingping Hou
c43053605f fix bug in getPitch, returning half of ptich for 4bpp fb 2013-02-18 00:15:30 +08:00
Qingping Hou
768e7e12e2 bug fix: getPitch should return line_length/2 2013-01-10 11:43:17 +08:00
Qingping Hou
88f0bb1dca add getPitch method to einkfb.c 2013-01-10 11:29:13 +08:00
Qingping Hou
21abe6b110 adapt refresh type code in fillMxcfbUpdateData
just to keep consistent with the old refresh type, i.e.
0 for full refresh and 1 for partial
2013-01-09 14:36:14 +08:00
Qingping Hou
b1256c98fc add more comments 2013-01-09 14:02:50 +08:00
Qingping Hou
267c5b16fc set refresh type on eink update in fillMxcfbUpdateData 2013-01-09 13:58:49 +08:00
Qingping Hou
e80987c430 rename mxcfb_update_data51 to mxcfb_update_data
as suggested by eureka@mobileread:
http://www.mobileread.com/forums/showthread.php?p=2337061#post2337061
2012-12-10 20:21:04 -05:00
eureka
15e0af2857 update mxcfb_alt_buffer_data struct, added MXCFB_SEND_UPDATE51
* mxcfb_alt_buffer_data is modified according to amazon's source
* use MXCFB_SEND_UPDATE51 instead of magic raw number for update
2012-12-10 20:06:27 -05:00
Qingping Hou
334f680598 use proper eink update function for KT 2012-12-10 19:54:44 -05:00
kai771
77a322f45f Implements Kindle screen rotate on emulator
Conflicts:

	einkfb.c
2012-11-26 13:35:16 -05:00
Qingping Hou
a43d1f7ae2 add kindlePaperWhite support for einkfb module 2012-10-20 03:33:27 +08:00
Qingping Hou
6102dc622f bug fixes for shadow framebuffer implementation 2012-06-23 20:37:33 +08:00
Qingping Hou
165585ecea fix typo in einkfb.c 2012-06-19 11:11:51 +08:00
Qingping Hou
81a846f32f properly free and unmap memory in closeFrameBuffer 2012-06-14 21:03:31 +08:00
Qingping Hou
47ec493da1 implement K4 framebuffer support with shadow blitbuffer
previous implementation make fb.bb has double pitch
compared to other blitbuffer, which leads to segfault
on blitFullFrom method.
2012-06-14 01:43:57 +08:00
Qingping Hou
937a91c297 fix fb:getOrientation method, adjust mode numbering
also use it in screen.lua
2012-06-11 00:09:23 +08:00
Qingping Hou
aaa6b38ef3 add getOrientation method for einkfb module 2012-06-10 23:54:27 +08:00
Qingping Hou
fba5ce51bd Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_code 2012-06-10 21:50:43 +08:00
Qingping Hou
b122e41351 k4 8bpp framebuffer support 2012-06-10 21:50:26 +08:00
Kefu Chai
869c7b573f remove dependency on <linux/fb.h> 2012-06-10 12:39:27 +02:00
HW
ec905a5a13 fixed various bugs in pointer handling 2012-04-16 22:51:13 +02:00
Qingping Hou
a24fca5b5c mod: simulate full screen update in SDL emulator 2012-03-31 21:09:06 +08:00
HW
8869c52c31 fix a Lua 5.0 syntax that was deprecated in 5.1
luaL_reg is now renamed to luaL_Reg. Lua 5.2 does not know about
the old name anymore, Lua 5.1.x had backward compatibility.
2012-03-19 19:11:32 +01:00
Qingping Hou
319826c385 mod: screen rotation implemented by ioctl
Now you get a instance rotate :) With only one bug.
I have to restore to previous rotation state of the
native system after exists. Because the native system
does poll the new rotation state that changed by ioctl.

Currently, I don't know how to force the native system
to detect the changes.
2012-03-09 18:34:56 +08:00
HW
41aa17082b reworked screen update emulation to support ranges 2011-12-08 23:43:37 +01:00
HW
b49b776962 changed meaning of eink refresh function arguments
now they specify width/height instead of bottom right coordinates
2011-12-08 00:38:12 +01:00
HW
485890f0fd fixed bug (oversight in refactoring framebuffer) 2011-12-02 23:14:07 +01:00
HW
f739baff5f moved blitting over to blitbuffer API
the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
2011-12-02 01:31:13 +01:00
HW
a02ae3a460 Added kerning for rendering text 2011-12-01 16:11:43 +01:00
HW
b38b75298a fixed blitting for uneven horizontal offsets/dests 2011-12-01 14:28:10 +01:00
HW
f307264fb6 added freetype text rendering (still buggy)
this allows to render glyphs and also brings a simple
engine for rendering UTF-8 strings onto the framebuffer.
blitting to uneven offset is implemented here, too, but
needs more work and is still buggy.

In the end, this will allow for a simple GUI.
2011-12-01 01:35:53 +01:00
HW
2414a4b9ec fixed bugs: initialization in einkfb.c, cache aging 2011-11-20 23:01:22 +01:00
HW
c2dd2d9897 switched blitbuffer to 4bpp (from 8bpp alpha + 8bpp gray)
this should allow to cache more, bigger pixmaps. We'll need this for
zoomed-in pages.
2011-11-20 21:29:59 +01:00
HW
7fafc61bb8 debug output leftover removed 2011-11-17 00:04:15 +01:00
HW
2a789efefb changed/enabled reader device emulation
The sources can now conditionally compile emulation code
for the e-ink framebuffer and input events.
It uses SDL for doing that, so you need this installed
if you want to use emulation (you do not need it if you're
only compiling for the e-ink device).
This allows for rapid testing of new code.
2011-11-16 23:50:00 +01:00
HW
0c24e3c7e0 initial project, basic reader working 2011-11-14 18:30:16 +01:00