Optimization: Use constant folding for divisions not a power of two (#9609)
This commit is contained in:
40 files changed
+118
-118
No files matched your search
@@ -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