Offset issue with DrawBar

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

Moderators: Developers, ZDoom.org Team

Forum rules
Please, if you can include a wad demonstrating the problem, 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.

Offset issue with DrawBar

Postby Blue Shadow » Fri Jun 16, 2017 10:13 pm

Tested/produced with: 3.1.0 64-bit, 3.2pre-64-g2ff492d 64-bit


There seems to be an offset problem with DrawBar when drawing the bar reversed (passing SHADER_REVERSE flag):

(Click for full size)
Image

The two bars you see are drawn exactly the same, with the exception that the bottom one is drawn in reverse, yet it's offset by on pixel to the left. Oddly, if you scale the HUD up like say 2x, the bar is drawn correctly.

(Click for full size)
Image

Now, this appears to affect some screen resolution, like 800x600 and 1024x768. On 1366x768, the biggest I can test this on, the bar is drawn fine.

Here is a demo file:

bar_test.pk3
(2.29 KiB) Downloaded 1 time

To test, load it with Doom. Switch to the fullscreen HUD while making sure to disable scaling. From the console: 'give ammo'. Fire your pistol seven times.

And as not to overlook this: the non-reversed bar (the top one) is drawn perfectly fine regardless of resolution or HUD scale.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest