@@ -95,22 +95,15 @@ function EnhancedRaidFrames:UpdateTargetMarker(frame, setAppearance)
9595 if index and index >= 1 and index <= 8 then
9696 -- Get the full texture path for the marker
9797 local texture = UnitPopupRaidTarget1ButtonMixin :GetIcon () or " Interface\\ TargetingFrame\\ UI-RaidTargetingIcons"
98-
99- local coords = {}
100- -- Get the texture coordinates for the marker
101- if not self .isWoWClassic then
102- -- 11.0 changed GetTextureCoords to return the coords unpacked
103- -- 1.15.4 updated to match retail, only WoW Cataclysm Classic still uses the old way
104- coords .tCoordLeft , coords .tCoordRight , coords .tCoordTop , coords .tCoordBottom = _G [" UnitPopupRaidTarget" .. index .. " ButtonMixin" ]:GetTextureCoords ()
105- else
106- coords = _G [" UnitPopupRaidTarget" .. index .. " ButtonMixin" ]:GetTextureCoords ()
107- end
108-
98+
99+ -- Get the texture coordinates for the marker icon
100+ local tCoordLeft , tCoordRight , tCoordTop , tCoordBottom = _G [" UnitPopupRaidTarget" .. index .. " ButtonMixin" ]:GetTextureCoords ()
101+
109102 -- Set the marker texture using trilinear filtering (reduces pixelation)
110103 frame .ERF_targetMarkerFrame :SetTexture (texture , nil , nil , " TRILINEAR" )
111104
112105 -- Set the texture coordinates to the correct icon of the larger texture
113- frame .ERF_targetMarkerFrame :SetTexCoord (coords . tCoordLeft , coords . tCoordRight , coords . tCoordTop , coords . tCoordBottom )
106+ frame .ERF_targetMarkerFrame :SetTexCoord (tCoordLeft , tCoordRight , tCoordTop , tCoordBottom )
114107
115108 -- Set the marker opacity
116109 frame .ERF_targetMarkerFrame :SetAlpha (self .db .profile .markerAlpha )
0 commit comments