Commit Graph

1118 Commits (3bd8c5c9f47ea2d83eb537ef6584ffce3ea9645f)
 

Author SHA1 Message Date
{Qingping,Dave} Hou 3bd8c5c9f4 Merge pull request #345 from tigran123/master
Build optimizations.
12 years ago
Tigran Aivazian 0c1eb1109e Be minimalistic wrt LDFLAGS
Passing CFLAGS and LDFLAGS to kpdfview link stage has no effect in our
particular case, so I ripped it out, leaving it only for the crengine.
12 years ago
Tigran Aivazian b6936f9dc5 Merge remote-tracking branch 'upstream/master' 12 years ago
Tigran Aivazian 13d686f438 Merge pull request #347 from dpavlin/last_globalzoom_mode_invalidation
reset last_globalzoom_mode on setglobalzoom_mode #346
12 years ago
Dobrica Pavlinusic 2fc0cb2ddd reset last_globalzoom_mode on setglobalzoom_mode #346 12 years ago
Tigran Aivazian 2fefc96b79 Enable LTO for kpdfview and crengine
Enaling link time optimizations for kpdfview binary and crengine library
causes another slight performance increase --- almost negligible (1-2ms
per page) but still noticeable by precise measurements.
12 years ago
Tigran Aivazian d2e3558add ARM-specific optimizations
Thanks to NiLuJe who pointed out that our generic -march=armv6 can be
replaced (for K2/K3/DX/DXG) with a more specific optimization:
-march=armv6j -mtune=arm1136jf-s -mfpu=vfp. This I have now done and
also passed ARM_CFLAGS value to CXXFLAGS which is then passed to
crengine build. Tested, works fine. The performance improvement is
negligible (a few ms per page, but seems to be consistently better, i.e.
not just plus/minus fluctuations).
12 years ago
Tigran Aivazian 5459cb18ae Build mupdf in release mode, not debug.
Thanks to NiLuJe who pointed out that we are building mupdf in debug
mode. Switching to "release" build reduced the size of the kpdfview
binary and did not cause any performance degradation (but no noticeable
improvement either --- the page handling times seem to be exactly the
same, i.e. fluctuating a couple of ms in both directions).
12 years ago
{Qingping,Dave} Hou 69e43d1c4d Merge pull request #343 from dpavlin/preCache
don't preCache in two column mode
12 years ago
{Qingping,Dave} Hou fcecd1425a Merge pull request #344 from tigran123/master
Restrict the values of rcountmax to the range 0 to 10.
12 years ago
Tigran Aivazian 72f669ff3c Don't allow floating point values for rcountmax
This is a better version of the previous commit, which:
a) makes the code more readable
b) disallows rcountmax values like "6.05", i.e. restricts to integers
only.
12 years ago
Tigran Aivazian 79c1dd44ca Restrict the values of rcountmax to the range 0-10
Currently the user can enter any value like -10 and it is accepted and
saved in the settings file(s).
12 years ago
Dobrica Pavlinusic 4d187aad4e don't preCache in two column mode
This also cleanups code to make it easier to follow chaning logic
a bit to generate useful Debug messages
12 years ago
Tigran Aivazian 72b064fa9a Merge remote-tracking branch 'upstream/master' 12 years ago
{Qingping,Dave} Hou a8197950d0 Merge pull request #342 from dpavlin/ZOOM_FIT_TO_CONTENT_WIDTH_PAN
ZOOM_FIT_TO_CONTENT_WIDTH_PAN pan centers page
12 years ago
Dobrica Pavlinusic 12e9930975 ZOOM_FIT_TO_CONTENT_WIDTH_PAN pan centers page
When we start panning up in fit to width mode, we shouldn't
center page vertically on screen.
12 years ago
Tigran Aivazian 051926637b Merge remote-tracking branch 'upstream/master' 12 years ago
Tigran Aivazian b4c0162a40 Merge remote-tracking branch 'upstream/master' 12 years ago
{Qingping,Dave} Hou c3b0c343c9 Merge pull request #340 from tigran123/master
Two fixes from NuPogodi
12 years ago
Tigran Aivazian 1a3371c5bf Two fixes from NuPogodi
1. ATM, the footers in selectmenu.lua & helppage.lua are left-adjusted,
these also contain the prompt for users how to call help
(selectmenu.lua) and how to go back (helppage.lua). By minor correction
to function DrawFooter() in filechooser.lua, one may readily make the
rest footers to look in a similar way.
2. When writing the code of inputbox.lua, I (NuPogodi) left the wrong
command to delete the 1st entry in the math function list
(called in calculator mode by pressing Alt-M).
12 years ago
Dobrica Pavlinušić 00bdcd7f14 Merge pull request #339 from tigran123/master
Typo: --disable-largefiles -> --disable-largefile
Optimize compilation of cre.cpp
Comment out debug printf() in pdf.c
12 years ago
Tigran Aivazian 5959c56937 Remove "-d" switch from reader.lua invocation. 12 years ago
Tigran Aivazian 24e9d77a37 Comment out debug printf() in pdf.c
The printf() about the number of links on a page is very useful, but
only for debugging. As other instances of debugging printf() in djvu.c
and pdf.c are commented out, it seemed consistent to do the same with
this one.
12 years ago
Tigran Aivazian db077b2f34 Optimize compilation of cre.cpp
1. Remove unused "-lsdtc++" from the compilation stage as no linking is
done then.
2. Add our standard CFLAGS to the compilation of cre.cpp which brings in
-O3 -march=armv6 which enables optimizations.
It seemed strange that we compile a cpp file with gcc (as opposed to
g++), but I left it as is for now.
12 years ago
Tigran Aivazian f77a201e0b Typo: --disable-largefiles -> --disable-largefile
As a result of a simple typo we were continuing to include LFS
support unnecessarily...
12 years ago
{Qingping,Dave} Hou a416e35555 Merge pull request #337 from tigran123/master
The fix for the issue #336
12 years ago
Tigran Aivazian 93e946b0a4 Undoing previous commit to crereader.lua by NuPogodi
The subject says it all (undoing accidental commit by a fellow
collaborator).
12 years ago
Dobrica Pavlinušić a6a4380d41 Merge pull request #335 from tigran123/master
Fix from NuPogodi: initialize scfont face properly.
12 years ago
NuPogodi f872473604 Replace outdated messages by InfoMessage:inform() 12 years ago
Tigran Aivazian f3b52f269c Tidy up "git status" output a bit.
Added settings.reader.lua, cr3cache, history, crash.log, .vimrc, data,
fonts to .gitignore.
12 years ago
Tigran Aivazian 90971a7bf7 Fix from NuPogodi --- initialize scfont face properly.
This fixes the bug of non-persistency of user's setting of scfont.
12 years ago
{Qingping,Dave} Hou 33bb760576 Merge pull request #332 from tigran123/master
Jump history in crereader loses the last position.
12 years ago
Tigran Aivazian 496fcc089f Merge remote-tracking branch 'upstream/master'
Conflicts:
	unireader.lua
12 years ago
Tigran Aivazian 58d19ea7fd Merge pull request #327 from dpavlin/two-column-recalculate-pan
recalculate pan offsets on page change #275
12 years ago
Dobrica Pavlinusic 7b983ee7e6 fix fiveway pan to right-bottom of previous page 12 years ago
Dobrica Pavlinusic 01a57b2fb9 recalculate pan offsets on page change
Store last globalzoom_mode in self.pan_by_page so we can restore it
to force offsets recalculation on page change

This wasn't quite enough to trigger correct re-panning for page
changes when using fiveway to move in two-column mode, issue #275

I considered adding callback to goto method and than transfering
it through function calls, but this approach (allthough very
questionable) seemed to provide simplier code.
12 years ago
Tigran Aivazian 850a777760 On pressing Back crereader loses last position
This fix makes the behaviour of Back command handler in crereader
identical with that in unireader, i.e. the last position is saved in
Jump History when pressing Back, so you can return to it by pressing
Shift-Back enough times.
Also, with this change we would need to handle the need for redrawing
the current page because the :addJump() method can force the call to
fillToc() (if TOC is not already present) and this will display
"Retrieving TOC..." message which will need clearing away.
12 years ago
Tigran Aivazian 68c95e4bb2 Merge remote-tracking branch 'dpavlin/two-column-recalculate-pan' into dpavlin-twocolumn 12 years ago
{Qingping,Dave} Hou cc1ab45b1c Merge pull request #329 from dpavlin/fit-content-pan
remember last zoom mode when panning #236
12 years ago
{Qingping,Dave} Hou 8588b08761 Merge pull request #326 from dpavlin/invertRect-negative
invertRect should handle negative x or y values
12 years ago
Dobrica Pavlinušić d4ee7f2c53 Merge pull request #328 from tigran123/master
Mixed up unireader.toc with self.toc in the command handler.
12 years ago
Dobrica Pavlinusic 7ba8d6f877 remember last zoom mode when panning #236
This tries to address issue #236 so that previous and next keys don't
change meaning when user go into panning mode by pressing fiveway.
12 years ago
Tigran Aivazian a7b22ba0d4 Mixed up unireader.toc with self.toc, sorry. 12 years ago
Dobrica Pavlinusic fe2517ecd2 recalculate pan offsets on page change
Store last globalzoom_mode in self.pan_by_page so we can restore it
to force offsets recalculation on page change

This wasn't quite enough to trigger correct re-panning for page
changes when using fiveway to move in two-column mode, issue #275

I considered adding callback to goto method and than transfering
it through function calls, but this approach (allthough very
questionable) seemed to provide simplier code.
12 years ago
Dobrica Pavlinusic c8b3a0d486 invertRect should handle negative x or y values
two-column mode combined with showing links in pdf files triggers this bug
12 years ago
Dobrica Pavlinušić 44bb4d18f2 Merge pull request #325 from tigran123/master
Various fixes.
12 years ago
Tigran Aivazian 5d82ffe984 Redraw current page if necessary on pressing Back
For PDF and DjVu files (but not for crereader) the command handler for
"Back" key can call addJump() in order to avoid losing the top of the
jump history on return. This (addJump()) can cause the TOC to be
retrieved and the message "Retrieving TOC..." to be displayed.
If this happens then we need to redraw the current page after displaying
our own "Already first jump!" message.
12 years ago
Tigran Aivazian 0987c2826e Don't crash on pressing Del in History
After deleting all the entries from History we should guard against
pressing Del to try to delete a non-existent entry.
12 years ago
Tigran Aivazian 819efb55aa Tidy up Screen:fb2bmp() function
1. Remove unused assert() around io.open of the input device. The failure
to open input device is already guarded by the "if inputf" code.
2. Remove unneeded assert() around io.open of the output device. This is
unneeded because we should not crash the whole application just because
we cannot write screen dump (e.g. because filesystem is full, etc) ---
rather we should exit gracefully.
12 years ago
Tigran Aivazian 6710aa132f Merge pull request #318 from tigran123/master
Show real time, not cpu time when making screenshots.
12 years ago