Skip to content

EGA, (S)VGA: Fix vertical fine scroll behaviour#4003

Merged
OBattler merged 1 commit into
86Box:masterfrom
iamgreaser:gm/vga-smooth-vscroll-fix-4001
Jan 7, 2024
Merged

EGA, (S)VGA: Fix vertical fine scroll behaviour#4003
OBattler merged 1 commit into
86Box:masterfrom
iamgreaser:gm/vga-smooth-vscroll-fix-4001

Conversation

@iamgreaser

Copy link
Copy Markdown
Contributor

Summary

This fixes the CRTC-based fine vertical scroll behaviour on the EGA render and the (S)VGA renderer.

The code was effectively offsetting the row counter and hiding the top few rows in the overscan. This messes up a lot of things, resulting in blank rows at the bottom and split screen activating on the wrong row.

Also, after this fix, if you set an out-of-range fine scroll value and you see some garbage at the top of your screen... that's normal for at least one real chipset.

Checklist

References

vgadoc, that bug report, and my trusty onboard S3 Trio64V2/DX for comparison.

@OBattler
OBattler merged commit e25cacc into 86Box:master Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EGA/VGA card bug

2 participants