Commit Graph

10 Commits (ef84aff1dbd3bc5ef0e85af9b150732050db5ec1)

Author SHA1 Message Date
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