mirror of
https://github.com/86Box/86Box.git
synced 2026-02-26 05:53:15 -07:00
Fix video initialization on four 486 machines and the IDE SET DRIVE PARAMETERS command.
This commit is contained in:
@@ -2610,8 +2610,8 @@ ide_callback(void *priv)
|
||||
err = ABRT_ERR;
|
||||
else {
|
||||
/* Only accept after RESET or DIAG. */
|
||||
if (ide->params_specified) {
|
||||
ide->cfg_spt = ide->tf->secount;
|
||||
if (!ide->params_specified) {
|
||||
ide->cfg_spt = (ide->tf->secount == 0) ? 256 : ide->tf->secount;
|
||||
ide->cfg_hpc = ide->tf->head + 1;
|
||||
|
||||
ide->params_specified = 1;
|
||||
|
||||
Reference in New Issue
Block a user