mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Optimization: Use constant folding for divisions not a power of two (#9609)
This commit is contained in:
@@ -156,8 +156,8 @@ function SortWidget:init()
|
||||
local padding = Size.padding.large
|
||||
self.width_widget = self.dimen.w - 2 * padding
|
||||
self.item_width = self.dimen.w - 2 * padding
|
||||
self.footer_center_width = math.floor(self.width_widget * 22 / 100)
|
||||
self.footer_button_width = math.floor(self.width_widget * 12 / 100)
|
||||
self.footer_center_width = math.floor(self.width_widget * (22/100))
|
||||
self.footer_button_width = math.floor(self.width_widget * (12/100))
|
||||
self.item_height = Size.item.height_big
|
||||
-- group for footer
|
||||
local chevron_left = "chevron.left"
|
||||
|
||||
Reference in New Issue
Block a user