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

24 Commits

Author SHA1 Message Date
chrox
56fa8a45b7 remove rescaleByDPI since it's not reversible
alternatively we store the original size before scaling by screen DPI
and use that value when needed.
2014-08-20 09:41:01 +08:00
chrox
c8bc9ee37c close screen framebuffer when exiting reader 2014-08-19 12:11:48 +08:00
WS64
fde966afd2 Readded a comment that was lost by an earlier PR 2014-08-14 22:17:53 +02:00
chrox
b7c7287bab remove more global variables 2014-08-14 19:52:30 +08:00
chrox
828d698b56 fix scaleByDPI(1) returns 0 in screen of lower DPI 2014-08-11 21:18:27 +08:00
WS64
eada89002d Remove Search Options (will be part of edit defaults) 2014-08-11 10:38:17 +02:00
WS64
52d6acdd50 Add search options (new) 2014-08-09 20:48:47 +02:00
chrox
8948400907 fix #765 2014-08-06 20:32:28 +08:00
chrox
225efb7655 prompt users to restart after changing screen DPI 2014-08-05 12:05:44 +08:00
chrox
403b9f7ce6 refactoring: use getXxMenuTable to remove redundant code in menus 2014-08-01 22:23:08 +08:00
chrox
87e667748a add font size menu entry
It changes screen DPI and may needs to reboot the reader to take effect.
This should fix #746.
2014-07-27 21:43:39 +08:00
WS64
de16368cc9 Added inverted landscape settings 2014-07-16 14:03:48 +02:00
WS64
ee6dfe04ed border Kobo Aura screen because of obscuration by black bezel 2014-07-16 09:40:37 +02:00
Markismus
c390d6fca4 offset and resize Kobo Aura screen because of obscuration by black bezel 2014-06-21 18:24:37 +02:00
chrox
ef84aff1db make ffi/util module local 2014-06-04 17:36:18 +08:00
chrox
b2e0d2a735 detect screen DPI for android devices 2014-06-02 23:49:00 +08:00
chrox
714bc13720 fix wrong screen dpi on Kindle paperwhite 2 2014-03-30 19:44:31 +08:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
chrox
819fece802 add DLANDSCAPE_CLOCKWISE_ROTATION option in defaults.lua 2014-01-03 23:38:47 +08:00
HW
af902d1d79 fix for Kobo framebuffers: allow for rotation at framebuffer setup
the Kobo framebuffer comes up in landscape mode, that is, landscape
in the other direction as we do it when going into landscape mode.
we leave it this way, and rather allow for a rotation correction at
framebuffer setup.

this PR pulls the relevant changes from koreader-base and makes the
screen code aware of this additional rotation setting.

Kobo framebuffers should now work properly with the new framebuffer
FFI code. They can stay in 16bpp mode and don't change the current
framebuffer settings. They should thus properly interoperate with
the native framework on Kobos as well as sergeys KoboLauncher
(no garbled screen when returning)
2013-11-27 15:57:50 +01:00
HW
9d3c27117d remove redundancy: new framebuffer supports rotation, multi-bpp
We can get rid of shadow blitbuffers. Screen.bb is now fb.bb.
All bpp conversion is now done by the blitbuffer abstraction layer.
Rotation mechanism is adapted to this.
2013-11-26 16:01:38 +01:00
Giorgio Micotti
ffc27d4437 Fix DPI for nex Kobo Aura (phoenix). 2013-11-17 14:43:41 +01:00
HW
09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +02:00
HW
2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00