mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-30 07:30:52 +00:00
Remove scaledsize fix
This commit is contained in:
@@ -6,10 +6,6 @@ do -- statusbars
|
||||
local stepsize, val
|
||||
local width, height, point
|
||||
|
||||
-- ClassicAPI before v1.18.0 leaves the UI scale in the size of an anchored
|
||||
-- frame, so the bar has to divide it back out
|
||||
local scaledsize = CLASSIC_API_VERSION < 11800
|
||||
|
||||
local animate = CreateFrame("Frame", "pfStatusBarAnimation", UIParent)
|
||||
animate:SetScript("OnUpdate", function()
|
||||
stepsize = tonumber(pfUI_config.unitframes.animation_speed)
|
||||
@@ -37,7 +33,6 @@ do -- statusbars
|
||||
|
||||
if self.mode == "vertical" then
|
||||
height = self:GetHeight()
|
||||
if scaledsize then height = height / self:GetEffectiveScale() end
|
||||
point = height / (self.max - self.min) * (val - self.min)
|
||||
|
||||
-- keep values in limits
|
||||
@@ -55,7 +50,6 @@ do -- statusbars
|
||||
self.bg:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", 0, point)
|
||||
else
|
||||
width = self:GetWidth()
|
||||
if scaledsize then width = width / self:GetEffectiveScale() end
|
||||
point = width / (self.max - self.min) * (val - self.min)
|
||||
|
||||
-- keep values in limits
|
||||
|
||||
Reference in New Issue
Block a user