WinDriver/win31drv
Scott Duensing 5527130145 Add wdrvScreenshot, auto-demo mode, palette fixes, and DAC width detection
Add wdrvScreenshot() to capture the screen to PNG via stb_image_write.h,
reading the framebuffer (or DDI bitmap fallback) and VGA DAC palette.

Convert demo.c to non-interactive mode with automatic screenshots after
each demo (DEMO01-15.PNG) and no keypress waits, plus per-driver
DOSBox-X configs for automated testing.

Set a standard Windows 3.1 256-color palette (8R x 8G x 4B color cube
with 20 static system colors) to ensure consistent output across drivers.

Fix wdrvSetPalette to also program the VGA DAC directly, since VBESVGA's
SetPalette DDI updates its internal color table but not the hardware.

Detect DAC width via VBE 4F08 (S3TRIO=6-bit, VBESVGA=8-bit) and use
correct shift in both DAC writes and reads — fixes dark display on
VBESVGA where 6-bit values in 8-bit DAC produced 1/4 brightness.

Fix S3 dispYOffset: extend PDEVICE deHeight by the offset so the
driver's internal clipping allows the full 600-row logical screen,
rather than incorrectly reducing dpVertRes to 590.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:55:57 -06:00
..
log.c Add README.md and expand code comments across all source files 2026-02-21 18:46:05 -06:00
log.h Initial commit. 2026-02-21 18:01:54 -06:00
Makefile Add TrueType font support via stb_truetype.h 2026-02-22 00:38:16 -06:00
neformat.h Add loadable font support: .FON/.FNT loading with v2→v3 conversion 2026-02-21 23:04:30 -06:00
neload.c Add README.md and expand code comments across all source files 2026-02-21 18:46:05 -06:00
neload.h Remove development diagnostics and clean up codebase 2026-02-21 18:27:00 -06:00
stb_image_write.h Add wdrvScreenshot, auto-demo mode, palette fixes, and DAC width detection 2026-02-23 18:55:57 -06:00
stb_truetype.h Add TrueType font support via stb_truetype.h 2026-02-22 00:38:16 -06:00
thunk.c Remove development diagnostics and clean up codebase 2026-02-21 18:27:00 -06:00
thunk.h Remove development diagnostics and clean up codebase 2026-02-21 18:27:00 -06:00
winddi.h Implement ExtTextOut DDI wrapper with built-in VGA ROM font 2026-02-21 21:21:23 -06:00
windrv.c Add wdrvScreenshot, auto-demo mode, palette fixes, and DAC width detection 2026-02-23 18:55:57 -06:00
windrv.h Add wdrvScreenshot, auto-demo mode, palette fixes, and DAC width detection 2026-02-23 18:55:57 -06:00
winstub.c Add README.md and expand code comments across all source files 2026-02-21 18:46:05 -06:00
winstub.h Add README.md and expand code comments across all source files 2026-02-21 18:46:05 -06:00
wintypes.h Add README.md and expand code comments across all source files 2026-02-21 18:46:05 -06:00