mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-09-07 22:26:34 -04:00
Rounding down divisions on panel buttons scaling
This commit is contained in:
parent
90612b7ae5
commit
d5ccd4a86d
@ -66,15 +66,15 @@ local function drawTitle(title)
|
|||||||
local x = Constants.baseWidth
|
local x = Constants.baseWidth
|
||||||
local y = 1
|
local y = 1
|
||||||
local width = 3 * Constants.baseWidth
|
local width = 3 * Constants.baseWidth
|
||||||
local height = 0.8 * Constants.baseHeight
|
local height = math.floor(0.8 * Constants.baseHeight)
|
||||||
Widget.drawBaseWidget(x, y, width, height, title)
|
Widget.drawBaseWidget(x, y, width, height, title)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drawPanelSection(index, title)
|
local function drawPanelSection(index, title)
|
||||||
local width = 0.6 * Constants.baseWidth
|
local width = math.floor(0.6 * Constants.baseWidth)
|
||||||
local height = 0.6 * Constants.baseHeight
|
local height = math.floor(0.6 * Constants.baseHeight)
|
||||||
local x = (Constants.baseWidth - width) / 2
|
local x = (Constants.baseWidth - width) / 2
|
||||||
local y = (index - 1) * Constants.baseHeight + (Constants.baseHeight - height) / 2
|
local y = (index - 1) * Constants.baseHeight + math.floor((Constants.baseHeight - height) / 2)
|
||||||
Widget.drawBaseWidget(x, y, width, height, title)
|
Widget.drawBaseWidget(x, y, width, height, title)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user