mirror of
https://github.com/S4mpsa/InfOS.git
synced 2025-08-04 02:16:05 -04:00
Fixing visual glitch on maxProgress display
Considering maxProgress an integer
This commit is contained in:
parent
9d829867e1
commit
711d96108c
@ -92,7 +92,8 @@ local function draw(self, index)
|
|||||||
DoubleBuffer.drawText(
|
DoubleBuffer.drawText(
|
||||||
x - 3 - 3 + width - Unicode.len(middleInfo) -
|
x - 3 - 3 + width - Unicode.len(middleInfo) -
|
||||||
Unicode.len(
|
Unicode.len(
|
||||||
Utility.splitNumber(self.progress) .. " / " .. Utility.splitNumber(self.maxProgress) .. " s"
|
Utility.splitNumber(math.floor(self.progress)) ..
|
||||||
|
" / " .. Utility.splitNumber(math.floor(self.maxProgress)) .. " s"
|
||||||
),
|
),
|
||||||
y + height - 3,
|
y + height - 3,
|
||||||
Colors.textColor,
|
Colors.textColor,
|
||||||
@ -101,11 +102,15 @@ local function draw(self, index)
|
|||||||
end
|
end
|
||||||
DoubleBuffer.drawText(
|
DoubleBuffer.drawText(
|
||||||
x + width -
|
x + width -
|
||||||
Unicode.len(Utility.splitNumber(self.progress) .. " / " .. Utility.splitNumber(self.maxProgress) .. " s") -
|
Unicode.len(
|
||||||
|
Utility.splitNumber(math.floor(self.progress)) ..
|
||||||
|
" / " .. Utility.splitNumber(math.floor(self.maxProgress)) .. " s"
|
||||||
|
) -
|
||||||
3,
|
3,
|
||||||
y + height - 3,
|
y + height - 3,
|
||||||
Colors.accentA,
|
Colors.accentA,
|
||||||
Utility.splitNumber(self.progress) .. " / " .. Utility.splitNumber(self.maxProgress) .. " s"
|
Utility.splitNumber(math.floor(self.progress)) ..
|
||||||
|
" / " .. Utility.splitNumber(math.floor(self.maxProgress)) .. " s"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user