Commit Graph

263 Commits (de6f2e84a38c071aee0e24e3836f2c47950cf20d)

Author SHA1 Message Date
HW a6541596ce added multiple zoom variants
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page

SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out

A = fit to page
S = fit to page width
D = fit to page height

SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height

SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
13 years ago
HW d96666f4b1 new cache organization in preparation for more complex tile data
in order to use the tile cache for variable zoomed tiles, we need more
flexibility. thus, now cache tiles are hashed (well, in fact it's a
concatenation) of their metadata.

also, we close pages right after opening them - there was no re-use
before and now we have opening and closing at one place. this should
also make it easier for the garbage collector.
13 years ago
HW a07ea2f8b8 factored out key config and tilecache 13 years ago
Dobrica Pavlinusic 0d9de55944 modify_gamma now use cache correctly
This exposed small bug in checkcache which checked just page no
which didn't get invalidated when closing page, so we now check if page
is also not nil
13 years ago
Dobrica Pavlinusic 1d7dc7ffee naive modify_gamma implementation 13 years ago
Dobrica Pavlinusic 0bff614525 device emu for emulated /tmp/input 13 years ago
Dobrica Pavlinusic f56c122e49 make long-form --goto page work 13 years ago
HW 32b85d2035 reader.lua changes to reflect new emulator 13 years ago
Dobrica Pavlinusic 716d81a28b add missing d (device) option 13 years ago
Dobrica Pavlinusic 83cfaad621 added --goto page comamnd-line argument 13 years ago
HW d10b73d81a fixed non-initialization bug for dc->gamma 13 years ago
HW ade5c4892d better argument parsing and option for gamma correction
included MIT-licensed alt_getopt implementation:
http://files.luaforge.net/releases/alt-getopt/alt-getopt/alt-getopt-0.7.0

created example use of gamma correction.

reader.lua now has usage notes for its invocation syntax.
13 years ago
HW 0c24e3c7e0 initial project, basic reader working 13 years ago