Screen.DrawLineFrame won't accept color string

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!

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Screen.DrawLineFrame won't accept color string

Re: Screen.DrawLineFrame won't accept color string

by Blue Shadow » Mon Mar 17, 2025 11:39 am

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...?

Re: Screen.DrawLineFrame won't accept color string

by Guest » Sun Mar 16, 2025 2:29 am

"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

by Boondorl » Tue Mar 11, 2025 2:41 am

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.

Screen.DrawLineFrame won't accept color string

by Guest » Sun Mar 09, 2025 5:33 am

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.

Top