Commit Graph

24 Commits (27ec17b4056c54ad2d7bd0b278bc375a8648b301)

Author SHA1 Message Date
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.
12 years ago
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
12 years ago
Dobrica Pavlinusic 66efe66f61 invertRect should handle negative x or y values
two-column mode combined with showing links in pdf files triggers this bug
12 years ago
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.
12 years ago
HW 33ec40f29a added boundary checking to setPixel() for development purposes 12 years ago
Qingping Hou 6c33d80966 add paintCircle and RoundedCornerBorder 12 years ago
HW ec905a5a13 fixed various bugs in pointer handling 12 years ago
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
12 years ago
traycold 0350822ade remove some trailing white spaces 12 years ago
Dobrica Pavlinusic 1aba2d2695 fix operator precedence #95
This explains why our dimmed areas had vertical stripes and improves
quality
12 years ago
Dobrica Pavlinusic 75bed710f7 fix shift direction and cleanup comments 12 years ago
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)
12 years ago
Qingping Hou f4ea1cdb62 Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts:
	blitbuffer.c
	unireader.lua
12 years ago
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.
12 years ago
Qingping Hou a231b944c1 add: first demo of cursor support 12 years ago
HW ad6198efb8 A take at better boundary checks in blitbuffer
this will hopefully prevent segfaults resulting from bad
coordinate/size input when blitting
12 years ago
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.
12 years ago
HW affc3b231a major overhaul of the code structure, more OO like 13 years ago
HW c9ab02084f refactored code a bit to avoid duplication 13 years ago
HW 1271d908dc fixed bug in rectangle painting and added example 13 years ago
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
13 years ago
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.
13 years ago
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.
13 years ago
HW 0c24e3c7e0 initial project, basic reader working 13 years ago