mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Floor dimension computations (mul/div). (#6264)
* floor most every dimension computations involving MUL or DIV Should avoid passing nonsensical floating point coordinates/dimensions to the UI code. * Update base * https://github.com/koreader/koreader-base/pull/1113 * https://github.com/koreader/koreader-base/pull/1114 * https://github.com/koreader/koreader-base/pull/1115 * Bump android-luajit-launcher https://github.com/koreader/android-luajit-launcher/pull/230 https://github.com/koreader/android-luajit-launcher/pull/231
This commit is contained in:
@@ -79,7 +79,7 @@ function ReaderDeviceStatus:addToMainMenu(menu_items)
|
||||
local SpinWidget = require("ui/widget/spinwidget")
|
||||
local curr_items = G_reader_settings:readSetting("low_battery_threshold") or 20
|
||||
local battery_spin = SpinWidget:new {
|
||||
width = Screen:getWidth() * 0.6,
|
||||
width = math.floor(Screen:getWidth() * 0.6),
|
||||
value = curr_items,
|
||||
value_min = 5,
|
||||
value_max = 90,
|
||||
|
||||
Reference in New Issue
Block a user