Frans de Jonge
629c32f6ba
Changes for Kobo Aura H2O.
2014-10-15 18:28:13 +02:00
chrox
14e2bf3d69
refatoring: lazy loading of packages
2014-10-03 16:13:34 +08:00
WS64
4916ae6cb1
Set minimum light to 0 instead of 1
2014-08-27 20:56:09 +02:00
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
Huang Xin
f5c717536a
Merge pull request #732 from WS64/master
...
Update TOC settings after some screen mode/hyphenation changes
2014-07-16 21:14:03 +08:00
WS64
de16368cc9
Added inverted landscape settings
2014-07-16 14:03:48 +02:00
Huang Xin
4310af0b42
Merge pull request #731 from WS64/master
...
Add white borders to Kobo Aura because of obscuration by black bezel
2014-07-16 15:59:25 +08:00
WS64
ee6dfe04ed
border Kobo Aura screen because of obscuration by black bezel
2014-07-16 09:40:37 +02:00
chrox
df57c19b99
check battery status file
2014-07-15 16:45:09 +08:00
chrox
bb9426038f
add API to query battery status on Android
2014-07-15 16:23:57 +08:00
Qingping Hou
108a451f0e
fix: crash on emulator when trying to display battery level
2014-07-08 12:19:00 -04:00
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.
2014-07-07 04:50:16 +02:00
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 )
2014-07-04 20:10:38 +02:00
Markismus
c390d6fca4
offset and resize Kobo Aura screen because of obscuration by black bezel
2014-06-21 18:24:37 +02:00
Huang Xin
c777d8ab3a
Merge pull request #625 from hwhw/master
...
fail gracefully when the Kobo light device cannot be opened
2014-06-04 22:01:00 +08:00
Hans-Werner Hilse
653143b448
fail gracefully when the Kobo light device cannot be opened
2014-06-04 15:38:12 +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
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.
2014-05-02 16:06:18 +02: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
45ca50458b
fix broken toggle frontlight on kpw2
2014-02-13 23:59:59 +08:00
chrox
7dbd437d1e
add battery status pulling functions in KoboPowerD
...
Status files found at
http://www.mobileread.com/forums/showpost.php?p=1750642&postcount=9 .
2014-01-05 00:29:46 +08:00
chrox
35538fe544
fix isCharging name conflict
2014-01-04 23:22:46 +08:00
chrox
4d1df962f5
cache battery level in BasePowerD
...
Since we need to pull it frequently but usually it doesn't change
that often.
2014-01-04 22:15:30 +08:00
chrox
92b62c907a
refactoring frontlight device to more generic power device
2014-01-04 21:38:07 +08:00
chrox
819fece802
add DLANDSCAPE_CLOCKWISE_ROTATION option in defaults.lua
2014-01-03 23:38:47 +08:00
chrox
3ee2c758ec
fix lost of frontlight intensity after exiting kobo
...
This should fix #243 .
2013-12-28 14:30:44 +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
NiLuJe
3754ca1ec3
Crappy rework of the model detection on Kindle.
...
In case it wasn't obvious, I badly suck at lua :D.
2013-11-23 00:09:37 +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
HW
ef111b99c6
Refactored to use strictly locals
2013-10-18 22:38:07 +02:00