From 471c5713c5fa1c4b60960b3f74110082811cb793 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 19 Oct 2026 20:20:03 -0500 Subject: [PATCH] use GetPhysicalScreenSize to get Screen Resolution --- modules/panel.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/panel.lua b/modules/panel.lua index 6db455d8..63a1ecf9 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -122,6 +122,7 @@ pfUI:RegisterModule("panel", function() local gcmb = gckb and gckb > 0 and round((gckb or 0)/1000, 2) .. " MB" or UNAVAILABLE local nin, nout, nping = GetNetStats() + local screenWidth, screenHeight = GetPhysicalScreenSize() GameTooltip:AddDoubleLine(T["Active Addons"], "|cffffffff" .. active .. "|cff555555 / |cffffffff" .. GetNumAddOns()) GameTooltip:AddLine(" ") @@ -133,7 +134,7 @@ pfUI:RegisterModule("panel", function() GameTooltip:AddDoubleLine(T["Network Latency"], "|cffffffff" .. nping .. "ms") GameTooltip:AddLine(" ") GameTooltip:AddDoubleLine(T["Graphic Renderer"], "|cffffffff" .. GetCVar("gxApi")) - GameTooltip:AddDoubleLine(T["Screen Resolution"], "|cffffffff" .. GetCVar("gxResolution")) + GameTooltip:AddDoubleLine(T["Screen Resolution"], "|cffffffff" .. screenWidth .. 'x' .. screenHeight) GameTooltip:AddDoubleLine(T["UI-Scale"], "|cffffffff" .. round(UIParent:GetEffectiveScale(),2)) GameTooltip:Show() end