Status Bar is One Pixel Short at 1440p

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

Moderator: GZDoom Developers

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!
User avatar
The DOOMED Marine
Posts: 17
Joined: Sat Jan 07, 2012 11:41 pm
Location: Australia

Status Bar is One Pixel Short at 1440p

Post by The DOOMED Marine »

I only noticed this minor visual bug when jumping from a 1080p monitor to 1440p with the following parameters:
  • - Scale factor: 1.0
    - Status bar scale: 6 (or scale to fullscreen), 8
    - HUD preserves aspect ratio: true
The pixel row in-between the game view and status bar is part of the green border, and is most apparent against Doomguy's hand or other high contrast images.

I've observed it in GZDoom 4.5.0, g4.6pre-50-gd8164e005 (default config besides the parameter changes and texture filtering off), and even the earliest copy of GZDoom I had left (g2.3pre-196-gc3ced58). It seemed to only occur on all ZDoom based source ports I have, it didn't for example occur in PRBoom+.

It's probably the definition of nitpicky but it has driven me insane since I switched monitors.

GZDoom 4.5.0 (fullscreen/zoom in to see the gap)


PRBoom+ (no pixel gap)
[imgur]https://i.imgur.com/2z9BEpL[/imgur]
User avatar
Player701
 
 
Posts: 1710
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Status Bar is One Pixel Short at 1440p

Post by Player701 »

I can reproduce this issue. "HUD preserves aspect ratio" must be enabled for the glitch to manifest, and it only happens with scales 8, 6, 3 and 1, as well as "Scale to fullscreen". Probably a rounding error of sorts.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Status Bar is One Pixel Short at 1440p

Post by Graf Zahl »

It's a roundoff error with the scaling math. In this particular case the scaling for the botton just is a tad inaccurate and lands on the wrong coordinate. There's a few cases where this can happen, but trying to fudge it will break other sizes then.
Post Reply

Return to “Bugs [GZDoom]”