Skip to content

Fix sniperscore display on macOS - #397

Open
rootcreep wants to merge 1 commit into
Velaron:mainfrom
rootcreep:fix-sniperscope
Open

Fix sniperscore display on macOS #397
rootcreep wants to merge 1 commit into
Velaron:mainfrom
rootcreep:fix-sniperscope

Conversation

@rootcreep

Copy link
Copy Markdown
Contributor

No description provided.

@a1batross

Copy link
Copy Markdown
Collaborator

It will break with hud_scale.

The problem isn't here but in how TrueWidth and TrueHeight are defined.

To fix this issue I've added vid_width and vid_height readonty cvars that always return physical window size, in pixels.

@rootcreep

rootcreep commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

It will break with hud_scale.

The problem isn't here but in how TrueWidth and TrueHeight are defined.

To fix this issue I've added vid_width and vid_height readonty cvars that always return physical window size, in pixels.

I tested with hud_scale 2 and everything worked fine

I accept this as a temporary solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants