From 337b77408b0be18bb2bff79182fd289003510266 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 24 Jan 2021 22:55:22 -0600 Subject: [PATCH] Resizing window with None background error fix. --- core/util.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/core/util.lua b/core/util.lua index c6d3d3f4..e4cedaeb 100644 --- a/core/util.lua +++ b/core/util.lua @@ -1015,14 +1015,22 @@ end if (not StartAlpha) then StartAlpha = 1.0 end - - if (EndRed > 1.0) then + if (not StartRed) then + StartRed = 1.0 + end + if (not StartGreen) then + StartGreen = 1.0 + end + if (not startBlue) then + StartBlue = 1.0 + end + if (not EndRed or EndRed > 1.0) then EndRed = 1.0 end - if (EndGreen > 1.0) then + if (not EndGreen or EndGreen > 1.0) then EndGreen = 1.0 end - if (EndBlue > 1.0) then + if (not EndBlue or EndBlue > 1.0) then EndBlue = 1.0 end @@ -1369,5 +1377,3 @@ end barra.lineText4:SetSize (texto_direita_tamanho+5, 15) end end - -