View Single Post
Old 09-25-2015, 04:39 AM   #14
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
`Only show multi-touch options on multi-touch devices`

Quote:
Originally Posted by DNSB View Post
Aura H2O does not have those settings on the reading settings pages.
Thanks, so this patch is only needed on the Glo. It prevents the "Pinch to adjust font size" and "Two-finger swipe to adjust brightness" settings from showing on the Reading Settings page.

Edit: Patch updated, it now displays the correct instructons for adjusting the brightness on the help pages. The two-finger swipe doesn't work on the Glo, use the brightness slider or a single-finger swipe along the left margin in a book instead.

Firmware 3.18.0, paste into libnickel.so.1.0.0.patch:
Spoiler:
Code:
<Patch>
patch_name = `Only show multi-touch options on multi-touch devices`
patch_enable = `yes`
#
# The Glo's Reading settings page shows "Pinch to adjust font size" and
# "Two-finger swipe to adjust brightness" even though those options don't
# work on the Glo. The Glo's help pages also give the incorrect instruction
# to use a two-finger swipe to adjust brightness.
#
# This patch causes those options only to be displayed on devices which support
# multi-touch gestures: the Aura, and devices with a custom multi-touch kernel,
# and displays the correct instructions for adjustting the brightness on the
# Glo's help pages (brightness slider ot single-finger swipe.)
#
# In N3SettingsReadingView::N3SettingsReadingView(QWidget*)
#  Device::isPhoenix() --> Device::supportsMultitouch()
replace_bytes = 764A8C, 87 F4 18 EA, 9E F4 60 EE
# In BrightnessHelpDialog::BrightnessHelpDialog()
#  Device::isPhoenix() --> Device::supportsMultitouch()
replace_bytes = 7B9DA6, 32 F4 8C E8, 49 F4 D4 EC
# In ReadABookBrightnessPage::ReadABookBrightnessPage(QWidget*)
#  Device::isPhoenix() --> Device::supportsMultitouch()
replace_bytes = 7CF8A6, 1C F4 0C EB, 33 F4 54 EF
</Patch>

Last edited by GeoffR; 09-27-2015 at 07:42 PM. Reason: Updated patch, removed alternative.
GeoffR is offline   Reply With Quote