Skip to content

Fix dark rectangles around text (VGUI2 Blur bug) in steam_legacy#300

Open
zz1000-god wants to merge 1 commit intotmp64:masterfrom
zz1000-god:fix-hud_custom_blur-with-dark-rectangles
Open

Fix dark rectangles around text (VGUI2 Blur bug) in steam_legacy#300
zz1000-god wants to merge 1 commit intotmp64:masterfrom
zz1000-god:fix-hud_custom_blur-with-dark-rectangles

Conversation

@zz1000-god
Copy link

Problem:
In the steam_legacy version (build 8684), the original hw.dll hardcodes the alpha channel to 0xFF (fully opaque) during the text blur rendering. Because of this, when custom HUD with blur/dim effects are enabled, ugly black/dark rectangles appear around the text instead of a smooth translucent blur.

Solution:
Added an in-memory patch that finds this exact place and replaces the broken instructions. It sets the base color of the blur to pure white (using PUSH -1 and POP [EBX]) while correctly preserving the calculated alpha value.

Thanks to stack optimization, this fix fits perfectly into the original 10-byte space without touching or breaking any surrounding code. The patch is safely disabled for newer Anniversary builds where it's not needed.

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.

1 participant