Comments (2)
White line does not appear unless machine=svga_s3.
Which means the blame lies with this code in src/hardware/vga_draw.cpp:
void VGA_Update_SplitLineCompare() {
vga.draw.split_line = vga.config.line_compare+1;
if (svgaCard==SVGA_S3Trio) {
if (vga.config.line_compare==0) vga.draw.split_line=0;
if (vga.s3.reg_42 & 0x20) { // interlaced mode
vga.draw.split_line *= 2;
}
}
vga.draw.split_line -= vga.draw.vblank_skip;
}
from dosbox-x.
I wonder if the guy who added that code simply wanted to double the line count for interlaced. We could fix this bug and possibly emulate the S3 interlaced line count correctly if we replaced it with:
if (svgaCard==SVGA_S3Trio) {
if (vga.s3.reg_42 & 0x20) {
vga.draw.split_line--;
vga.draw.split_line *= 2;
vga.draw.split_line++;
}
}
The question then comes down to: Do S3 chipsets emulate line compare such that line_compare == 0 means the first scanline is repeated? Or do S3 chipsets special-case against that, and do not repeat the first scanline?
from dosbox-x.
Related Issues (20)
- CPU test failed with betrayal in Antara HOT 6
- Color degradation in DOSBox-X on Raspi-OS 64bit (Flatpak install)
- `boot --bios` fails to pass through the IDE HDC in the same way that regular `boot` does. HOT 3
- Self-contained Application for Mac release HOT 1
- The Terminator - Future Shock No Audio In FMV Cutscenes HOT 5
- MotorMash strange color palette HOT 2
- Cannot insert a disk image on a drive after a game is running HOT 9
- macOS - shell scripts launched by DOSBox-X have wrong "locale" information HOT 6
- when will be a new release? HOT 1
- Wing Commander 2 No Speech With Loadfix HOT 4
- Realms of a haunting wonβt play fmvs HOT 4
- Screen Text HOT 2
- Laggy keyboard input in Borland C++ 3.1 HOT 2
- Disk Mechanic from MLI Microsystems
- Incorrect colors on EGA video card [on Mac OS] HOT 5
- Raw screenshots have duplicated pixels and no Pixel Aspect Ratio metadata HOT 4
- Windows hardware factors that affect DOSBox-X speed in TTF mode HOT 4
- How to Paste URL into program in DOSBOX-X HOT 1
- Function request: Support SCCI protocol (serial port control FM chip)
- Support 256 color text mode hack HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dosbox-x.