Back to TPG

Part of TPG namespace

TPG.UI.S(v)
View on GitHub|gamemode/config/sh_palette.lua:258-260
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Convert a 1080p-authored pixel value to this screen's pixels. Rounded, because a half-pixel panel edge draws as a blurry seam.

Parameters

NameTypeDescription
vnumberA pixel value as authored at 1920x1080.

Returns

TypeDescription
numberThe scaled, rounded pixel value for the current screen.

Examples

No examples available.

Used In

No usages found in the codebase.