Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

OSD loses ampersands in text

Charles Dye

Super Moderator
May
4,938
126
Staff member
Code:
osd /time=3 /hcenter /font=40 This ^& That!

I think you're calling DrawText() without DT_NOPREFIX.


Priority: Millions are anxiously awaiting your fix to this earth-shakingly urgent bug! Or not.
 
Last edited:
You need to double the ampersands.

Per the DrawText() documentation, yeah. (And escape both ampersands, or strong-quote them or whatever.) But setting one more bit in the flags arg would disable this inappropriate feature.

And yes, I know that it's worked that way since day 1, and nobody has ever complained, or perhaps even noticed. Not hugely important, just a tiny improvement that would be trivial to make.
 
Back
Top