Page 1 of 1

Screen.DrawLineFrame won't accept color string

Posted: Sun Mar 09, 2025 5:33 am
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.

Re: Screen.DrawLineFrame won't accept color string

Posted: Tue Mar 11, 2025 2:41 am
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.

Re: Screen.DrawLineFrame won't accept color string

Posted: Sun Mar 16, 2025 2:29 am
by Guest
"FFFF0000" results in nothing being drawn as well. Perhaps some casting error in the internals of DrawLineFrame?

Re: Screen.DrawLineFrame won't accept color string

Posted: Mon Mar 17, 2025 11:39 am
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...?