vid_tvp3026_ramdac: Implement warp-around for hardware cursor buffer32 drawing

Fixes crashes on Windows 2000
This commit is contained in:
Cacodemon345
2024-02-16 01:24:35 +06:00
committed by GitHub
parent 0b8f02d702
commit d37b72e251

View File

@@ -649,7 +649,7 @@ tvp3026_hwcursor_draw(svga_t *svga, int displine)
comb = (b0 | (b1 << 1)); comb = (b0 | (b1 << 1));
y_pos = displine; y_pos = displine;
x_pos = offset + svga->x_add; x_pos = (offset + svga->x_add) & 2047;
p = svga->monitor->target_buffer->line[y_pos]; p = svga->monitor->target_buffer->line[y_pos];
if (offset >= svga->dac_hwcursor_latch.x) { if (offset >= svga->dac_hwcursor_latch.x) {