Commit Graph

28 Commits (47e65af4ed04513a1a660fb3bc9f6df67f78309f)

Author SHA1 Message Date
Hans-Werner Hilse 5982e24d57 unify color specification
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
10 years ago
Frans de Jonge f3d5d5b030 Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3) 10 years ago
Frans de Jonge 7117235414 Kobo Aura H2O: fix bezel. 10 years ago
Frans de Jonge 629c32f6ba Changes for Kobo Aura H2O. 10 years ago
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.
10 years ago
chrox c8bc9ee37c close screen framebuffer when exiting reader 10 years ago
WS64 fde966afd2 Readded a comment that was lost by an earlier PR 10 years ago
chrox b7c7287bab remove more global variables 10 years ago
chrox 828d698b56 fix scaleByDPI(1) returns 0 in screen of lower DPI 10 years ago
WS64 eada89002d Remove Search Options (will be part of edit defaults) 10 years ago
WS64 52d6acdd50 Add search options (new) 10 years ago
chrox 8948400907 fix #765 10 years ago
chrox 225efb7655 prompt users to restart after changing screen DPI 10 years ago
chrox 403b9f7ce6 refactoring: use getXxMenuTable to remove redundant code in menus 10 years ago
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.
10 years ago
WS64 de16368cc9 Added inverted landscape settings 10 years ago
WS64 ee6dfe04ed border Kobo Aura screen because of obscuration by black bezel 10 years ago
Markismus c390d6fca4 offset and resize Kobo Aura screen because of obscuration by black bezel 10 years ago
chrox ef84aff1db make ffi/util module local 10 years ago
chrox b2e0d2a735 detect screen DPI for android devices 10 years ago
chrox 714bc13720 fix wrong screen dpi on Kindle paperwhite 2 10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
chrox 819fece802 add DLANDSCAPE_CLOCKWISE_ROTATION option in defaults.lua 11 years ago
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)
11 years ago
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.
11 years ago
Giorgio Micotti ffc27d4437 Fix DPI for nex Kobo Aura (phoenix). 11 years ago
HW 09cd5c4104 Make DEBUG a require()d local 11 years ago
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).
11 years ago