bugfix to follow VGA specification and fix AC palette reading problems on S3 cards.
bugfix to follow VGA specification and fix AC palette reading problems
on S3 cards.

joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib