Screen.DrawLineFrame won't accept color string

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Guest

Screen.DrawLineFrame won't accept color string

Post by Guest »

Screen.Dim and the line drawing functions can be used with for example "FF0000" as the color argument. This does not work with screen.DrawLineFrame specifically.
doing Color col = color(255, 255, 0, 0) then supplying col to Screen.DrawLineFrame however does work.
Boondorl
Posts: 157
Joined: Wed Jul 11, 2018 10:57 pm

Re: Screen.DrawLineFrame won't accept color string

Post by Boondorl »

What happens if you use "FFFF0000" as the argument? A lot of things in GZDoom ignore the alpha argument on colors so it's possible the alpha is getting actually used here.
Guest

Re: Screen.DrawLineFrame won't accept color string

Post by Guest »

"FFFF0000" results in nothing being drawn as well. Perhaps some casting error in the internals of DrawLineFrame?
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: Screen.DrawLineFrame won't accept color string

Post by Blue Shadow »

Here, the color parameter for DrawLineFrame uses the PARAM_COLOR macro (or whatever it's called), while Dim, just above, use PARAM_INT. Maybe that's what's causing the discrepancy...?

Return to “Bugs [GZDoom]”