viti95 / FastDoom

Doom port for DOS, optimized to be as fast as possible!
378 stars 26 forks source link

Off by 1 error rendering on VESA HighRes new modes (above status bar) #167

Closed viti95 closed 5 months ago

viti95 commented 5 months ago

A line of garbagled data appears above the status bar

[elszgensa] "At first, using the direct rendering builds, I saw flickering (looked like different brightnesses?) on the uppermost line of the status bar; the backbuffered ones had straight up garbage there instead. Saw this across multiple runs at different resolutions..."

viti95 commented 5 months ago

I was able to replicate the issue. Steps:

  1. Remove fdoom.cfg
  2. Launch fdm600d.exe or fdm600r.exe

dos4gw_004

This error shows up on all video modes, and happens when the screen border is being used.

viti95 commented 5 months ago

There is something wrong in the function HUlib_eraseTextLine (hu_lib.c). If I disable lines 161-172, the bug is fixed.