Yellow lines on status bar when using widescreen resolutions

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Doom_user
Posts: 22
Joined: Mon Jul 10, 2006 9:59 am

Yellow lines on status bar when using widescreen resolutions

Post by Doom_user »

When using widescreen resolutions such as 1280x800 or 1280x720, there's a solid black line either above or to the left of the status bar. If I access the menu it turns yellow. This happens in 2.5.0 as well as r3080.

1280x800
Image

1280x720
Image
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by Project Shadowcat »

Confirmed with 1600x900 but I think this has been known for quite some time. The yellow is simply an indicator that it's HOMming.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Yellow lines on status bar when using widescreen resolut

Post by Gez »

Precision issues with roundoff errors. Bugs like this one reappear frequently.
User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by MG_Man »

This has happened many times before, but I'm surprised nothing's been done about it.

How about if it just draws the HUD borders under the status bar? It would get rid of the horrid yellow line, at least.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Yellow lines on status bar when using widescreen resolut

Post by Graf Zahl »

MG_Man wrote:This has happened many times before, but I'm surprised nothing's been done about it.

Because it's obviously not that easy to fix.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by randi »

Not that it hasn't been tried, but I don't really care anymore.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Yellow lines on status bar when using widescreen resolut

Post by Gez »

Someone suggested on DRD Team forum to add "completeborder true;" to the SBARINFO definition, as it would remove the HOM in such cases.
Blzut3
 
 
Posts: 3202
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by Blzut3 »

I'm busy with another project at the moment, but I did at one point think about drawing 1 pixel of border "under" the statusbar which would probably solve this issue without wasting as much time as completeborder.
User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by MG_Man »

How would adding "completeborder true;" waste time? Isn't it already implemented?
User avatar
Nash
 
 
Posts: 17485
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by Nash »

Perhaps he's speaking in terms of performance?... as in, time = CPU cycles... ?
User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by MG_Man »

Perhaps, but it seems like a fairly inexpensive operation. I notice no performance differences. It would be true, though, that a 1px border within the status bar would be much less taxing.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by wildweasel »

My trick to prevent this is to lower the "height" setting on the status bar to one pixel less than the actual pixel height of the bar image. So in Doom's case, "height" would be set to 31 instead of 32. Barely perceptible difference to most players, and the bar gets drawn over that one line of imprecision that occurs at certain screen resolutions.

However, this does not fix the vertical line seen in the first shot, only the horizontal one at 1280x720 et al.
Lars2500
Posts: 66
Joined: Sat Jul 14, 2012 8:45 am

Re: Yellow lines on status bar when using widescreen resolut

Post by Lars2500 »

wildweasel wrote:My trick to prevent this is to lower the "height" setting on the status bar to one pixel less than the actual pixel height of the bar image. So in Doom's case, "height" would be set to 31 instead of 32. Barely perceptible difference to most players, and the bar gets drawn over that one line of imprecision that occurs at certain screen resolutions.
True, but the side effect is that the map name displayed on the automap is also lowered by 1 line. Looks not great either.
MG_Man wrote:Perhaps, but it seems like a fairly inexpensive operation. I notice no performance differences. It would be true, though, that a 1px border within the status bar would be much less taxing.
From a programmer's point of view I'd also say that simply including the "completeborder true;" statement is the more robust way of fixing the problem, rather than programming something to somehow "work around" the problem where it is not even clear if it would not introduce problems with custom status bars. I also doubt it makes much difference in regards to CPU cycles.

Plus, the fix does not require any work on the programmers' sides. It is simply including one line in the sbarinfo definitions.

So my suggestion is also that "completeborder true;" should be used as a fix for this problem.
Blzut3
 
 
Posts: 3202
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: Yellow lines on status bar when using widescreen resolut

Post by Blzut3 »

Really the only work involved here is testing changes across many resolutions. Adding 1 and subtracting 1 isn't that difficult to do. :p
Lars2500
Posts: 66
Joined: Sat Jul 14, 2012 8:45 am

Re: Yellow lines on status bar when using widescreen resolut

Post by Lars2500 »

Blzut3 wrote:Really the only work involved here is testing changes across many resolutions. Adding 1 and subtracting 1 isn't that difficult to do. :p
Quick tests indicate that your changes in the latest SVN fix the problem for all resolutions reported so far - horizontally AND vertically. So, thanks! :D
Post Reply

Return to “Closed Bugs [GZDoom]”