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

27 Commits

Author SHA1 Message Date
Qingping Hou
a54d2c5abb fix coordinate calculation for blitbuffer rotation 2013-02-18 16:14:05 +08:00
Qingping Hou
78691fd499 add blitToBufferRotate to blitbuffer.c 2013-01-31 13:58:14 +08:00
Qingping Hou
97cd1e79a5 add pitch argument to newBlitBufferNative 2013-01-10 11:34:00 +08:00
HW
4b2a9237c9 factored out blitting constraints check in a seperate function
the checking of the boundaries when blitting was incomplete
for the addblitToBuffer() function when compared with the
blitToBuffer() function. Factored out the redundant checking
procedure into a new function.

Should fix another bug leading to issue #401 and probably
more cases for specifying boundary boxes.
2012-10-31 20:31:51 -04:00
HW
cf38d02e80 added framework to check the involved pointers in blitbuffer operations
blitbuffer operations in 4bpp can be a nasty experience, easy to
get the pointers wrong. so a macro can check them now.

Conflicts:

	blitbuffer.c
2012-10-31 20:31:23 -04:00
Dobrica Pavlinusic
66efe66f61 invertRect should handle negative x or y values
two-column mode combined with showing links in pdf files triggers this bug
2012-09-27 12:42:26 +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
HW
33ec40f29a added boundary checking to setPixel() for development purposes 2012-06-10 17:34:46 +02:00
Qingping Hou
6c33d80966 add paintCircle and RoundedCornerBorder 2012-04-26 15:15:34 +08:00
HW
ec905a5a13 fixed various bugs in pointer handling 2012-04-16 22:51:13 +02:00
traycold
02dd9b023f Merge remote branch 'hwhw/master'
* hwhw/master: (183 commits)
  show infomessage on document open
  use InfoMessage for empty TOC, jump history and highlights
  copy resources dir on customupdate
  add resource: info icon
  display document open error message
  added infomessage dialog implementation
  bugfix, removed old test constant
  Added widget abstraction framework
  added interface to get blitbuffers from JPEG/PNG files
  fix typo
  added reading of pan_margin settings
  fix full screen refresh command, close #99
  add: sleep and usleep in util module
  fix: add back KEY_FW{LEFT,RIGHT} commands to NumInputBox
  reverted removal of last-doc shortcut, introduced framework restart
  kill our own child process. not quite finished.
  added line spacing setting for crereader
  remove page:getPageText debug dump to improve performance on device
  remove page:getPageText debug dump to improve performance on device
  display crash.log on error
  ...

Conflicts:
	ft.c
	helppage.lua
	inputbox.lua
	rendertext.lua
	rendertext_example.lua
	unireader.lua
2012-04-16 00:08:19 +02:00
traycold
0350822ade remove some trailing white spaces 2012-04-15 16:05:44 +02:00
Dobrica Pavlinusic
1aba2d2695 fix operator precedence #95
This explains why our dimmed areas had vertical stripes and improves
quality
2012-04-10 15:05:18 +02:00
Dobrica Pavlinusic
75bed710f7 fix shift direction and cleanup comments 2012-04-09 20:27:45 +02:00
Dobrica Pavlinusic
9dd9df0356 added dimRect and use it
dimRect might be useful if we want to display status messages over
content (as opposed to erasing background)
2012-04-09 16:36:22 +02:00
Qingping Hou
f4ea1cdb62 Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts:
	blitbuffer.c
	unireader.lua
2012-03-20 10:36:35 +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
a231b944c1 add: first demo of cursor support 2012-03-15 17:03:09 +08:00
HW
ad6198efb8 A take at better boundary checks in blitbuffer
this will hopefully prevent segfaults resulting from bad
coordinate/size input when blitting
2012-03-13 18:34:04 +01:00
Qingping Hou
936ce2d661 fix: bug in paintRect
When calculating index of byte for rightmost column,
it should be (x + w)/2 not (x + w + 1)/2.
2012-03-06 11:10:20 +08:00
HW
affc3b231a major overhaul of the code structure, more OO like 2011-12-08 00:45:39 +01:00
HW
c9ab02084f refactored code a bit to avoid duplication 2011-12-02 22:28:48 +01:00
HW
1271d908dc fixed bug in rectangle painting and added example 2011-12-02 01:43:55 +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
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
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
0c24e3c7e0 initial project, basic reader working 2011-11-14 18:30:16 +01:00