Video changes of the day (July 8th, 2024)

IBM 8514/A set:
Fixed a one off video bug that was causing the VGA video to not be restored after quitting a 8514/A GUI session (namely on Win2.x' 8514/A's driver).
ATI Mach32:
Fixed another vertical display issue when activated (in 1280x1024 mode, when 1024 was 1022).
All involved:
Apply RG's changedvram fix to 8514/A, Mach8/32 and XGA's changedvram pointers.
This commit is contained in:
TC1995
2024-07-08 21:21:06 +02:00
parent 45f198af44
commit 1b6fd190fb
4 changed files with 15 additions and 11 deletions

View File

@@ -3346,7 +3346,7 @@ xga_init(const device_t *info)
xga->vram_size = (1024 << 10);
xga->vram_mask = xga->vram_size - 1;
xga->vram = calloc(xga->vram_size, 1);
xga->changedvram = calloc(xga->vram_size >> 12, 1);
xga->changedvram = calloc((xga->vram_size >> 12) + 1, 1);
xga->on = 0;
xga->hwcursor.cur_xsize = 64;
xga->hwcursor.cur_ysize = 64;