Yellow lines on status bar when using widescreen resolutions

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.

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 OFF
Smilies are ON

Topic review
   

Expand view Topic review: Yellow lines on status bar when using widescreen resolutions

Re: Yellow lines on status bar when using widescreen resolut

by Lars2500 » Sat Jul 21, 2012 8:56 pm

A new graphical glitch is introduced by the recent fix: When defining a new status bar using "base none;" there is a weird line at the bottom of the screen. The Hexen mod "Serpent Resurrection" uses this for example, but it can reproduced in any other game by loading an sbarinfo lump which just contains the line "base none;".
Attachments
Screenshot_Hexen_20120722_042825.jpg

Re: Yellow lines on status bar when using widescreen resolut

by Lars2500 » Thu Jul 19, 2012 5:49 am

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

Re: Yellow lines on status bar when using widescreen resolut

by Blzut3 » Wed Jul 18, 2012 4:31 pm

Really the only work involved here is testing changes across many resolutions. Adding 1 and subtracting 1 isn't that difficult to do. :p

Re: Yellow lines on status bar when using widescreen resolut

by Lars2500 » Tue Jul 17, 2012 3:41 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by wildweasel » Tue Jul 17, 2012 3:38 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by MG_Man » Tue Jul 17, 2012 2:53 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by Nash » Tue Jul 17, 2012 2:07 pm

Perhaps he's speaking in terms of performance?... as in, time = CPU cycles... ?

Re: Yellow lines on status bar when using widescreen resolut

by MG_Man » Tue Jul 17, 2012 1:44 pm

How would adding "completeborder true;" waste time? Isn't it already implemented?

Re: Yellow lines on status bar when using widescreen resolut

by Blzut3 » Sat Jul 14, 2012 10:21 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by Gez » Sat Jul 14, 2012 11:26 am

Someone suggested on DRD Team forum to add "completeborder true;" to the SBARINFO definition, as it would remove the HOM in such cases.

Re: Yellow lines on status bar when using widescreen resolut

by randi » Fri Apr 27, 2012 8:44 pm

Not that it hasn't been tried, but I don't really care anymore.

Re: Yellow lines on status bar when using widescreen resolut

by Graf Zahl » Mon Jan 24, 2011 5:33 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by MG_Man » Mon Jan 24, 2011 5:01 pm

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.

Re: Yellow lines on status bar when using widescreen resolut

by Gez » Fri Dec 31, 2010 3:16 am

Precision issues with roundoff errors. Bugs like this one reappear frequently.

Top