Commit Graph

44 Commits (14e2bf3d69e3375beb991b5afe19dd798cd76b8c)

Author SHA1 Message Date
chrox 14e2bf3d69 refatoring: lazy loading of packages 10 years ago
WS64 4916ae6cb1 Set minimum light to 0 instead of 1 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
Huang Xin f5c717536a Merge pull request #732 from WS64/master
Update TOC settings after some screen mode/hyphenation changes
10 years ago
WS64 de16368cc9 Added inverted landscape settings 10 years ago
Huang Xin 4310af0b42 Merge pull request #731 from WS64/master
Add white borders to Kobo Aura because of obscuration by black bezel
10 years ago
WS64 ee6dfe04ed border Kobo Aura screen because of obscuration by black bezel 10 years ago
chrox df57c19b99 check battery status file 10 years ago
chrox bb9426038f add API to query battery status on Android 10 years ago
Qingping Hou 108a451f0e fix: crash on emulator when trying to display battery level 10 years ago
NiLuJe a6ff78e5d8 Fix the battery checks.
I have *no* idea how that even seemed to work, but in fact didn't.
Also no idea where the hell is the battery status supposed to appear in
the menu, because it's currently not there.
10 years ago
NiLuJe f1cc984cbf Close lipc handles on exit.
No idea if bad things happen if we don't, but at least this sounds more
correct. (re #696)
10 years ago
Markismus c390d6fca4 offset and resize Kobo Aura screen because of obscuration by black bezel 10 years ago
Huang Xin c777d8ab3a Merge pull request #625 from hwhw/master
fail gracefully when the Kobo light device cannot be opened
10 years ago
Hans-Werner Hilse 653143b448 fail gracefully when the Kobo light device cannot be opened 10 years ago
chrox ef84aff1db make ffi/util module local 10 years ago
chrox b2e0d2a735 detect screen DPI for android devices 10 years ago
Markismus a153286f44 Kobo Frontlight Tweaks
Now the frontlight remains unchanged from Nickel to koreader and vice
versa.
Also ffi/kobolight.lua has been changed to allow for usage of the toggle
button in the filemanager.
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 45ca50458b fix broken toggle frontlight on kpw2 10 years ago
chrox 7dbd437d1e add battery status pulling functions in KoboPowerD
Status files found at
http://www.mobileread.com/forums/showpost.php?p=1750642&postcount=9.
11 years ago
chrox 35538fe544 fix isCharging name conflict 11 years ago
chrox 4d1df962f5 cache battery level in BasePowerD
Since we need to pull it frequently but usually it doesn't change
that often.
11 years ago
chrox 92b62c907a refactoring frontlight device to more generic power device 11 years ago
chrox 819fece802 add DLANDSCAPE_CLOCKWISE_ROTATION option in defaults.lua 11 years ago
chrox 3ee2c758ec fix lost of frontlight intensity after exiting kobo
This should fix #243.
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
NiLuJe 3754ca1ec3 Crappy rework of the model detection on Kindle.
In case it wasn't obvious, I badly suck at lua :D.
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
HW ef111b99c6 Refactored to use strictly locals 11 years ago