Halflife: MOTD resolution bugged on 1440x900

Created on 24 Apr 2019  路  8Comments  路  Source: ValveSoftware/halflife

Title. (Probably on more resolutions, not tested)

1440x900 main MOTD:
Image 1

1440x900 Chooseteam VGUI
Image 2

I would like more testing on more resolutions so we can provide a more complete feedback.

Counter-Strike

Most helpful comment

Happens on all 16:10 aspect ratio resolutions for me

All 8 comments

720x480, 1280x800, 1600x1024, 1680x1050 also have this similar issue.

image
image
1920x1080,

image
image
1600x900

When you made the tests, did you just changed the resolutions or did you made game restarts in-between?

Just changed resolution's.

image
image
After restart's also work's.

I checked this with 1680x1050, both windowed and fullscreen:
https://i.imgur.com/VcYmKil.png

Notably the buy menu is not affected:
https://i.imgur.com/0JuRsR6.png

The thing that all these menus have in common is that the title is a label created by the resource file.
The MOTD does create a label called serverName, but only after calling LoadControlSettings which will create non-existent controls.
The team and class menus don't create labels at all, and rely on the resource file to do so.

Since the buy menu just sets the title on the frame it doesn't have a free floating control to position.

So it seems that the label created by the resource file isn't getting the correct x value set for some resolutions.

The code responsible is in vgui2::Panel::ApplySettings, it calculates x based on screen width so that's probably where the fix is needed.

Since xpos is 0 we can rule out GetProportionalScaledValue since it would return 0 in all cases.

Happens on all 16:10 aspect ratio resolutions for me

Closing in favor of #1931.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

perforatorRU picture perforatorRU  路  3Comments

perforatorRU picture perforatorRU  路  3Comments

WhiteFang1319 picture WhiteFang1319  路  3Comments

CS-PRO1 picture CS-PRO1  路  3Comments

BlackShadow picture BlackShadow  路  3Comments