Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong palette is used in 4bpp packed pixel modes #5278

Open
2 tasks done
MrMadguy64 opened this issue Nov 14, 2024 · 3 comments
Open
2 tasks done

Wrong palette is used in 4bpp packed pixel modes #5278

MrMadguy64 opened this issue Nov 14, 2024 · 3 comments
Labels

Comments

@MrMadguy64
Copy link

MrMadguy64 commented Nov 14, 2024

Describe the bug

If I try to change EGA palette in 4bpp packed pixel mode via Int 10h 1002h - following problem happens:
EGA

Testing shows, that palette is set correctly in other modes.

Steps to reproduce the behaviour

  1. Set any 4bpp packed pixel mode
  2. Try to change palette via Int 10h 1002h

Expected behavior

VGA

What operating system(s) this bug have occurred on?

Windows

What version(s) of DOSBox-X have this bug?

Latest

Used configuration

No response

Output log

No response

Additional information

No response

Have you checked that no similar bug report(s) exist?

  • I have searched and didn't find any similar bug report.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@MrMadguy64 MrMadguy64 added the bug label Nov 14, 2024
@MrMadguy64
Copy link
Author

Problem on second screenshot was my fault - it's fixed now.

@joncampbell123
Copy link
Owner

This is 320x200 or 640x200 16-color mode, correct?

The palette works differently in 200-line modes vs 350-line modes. It has to do with how the monitor interprets the 6-bit output pins where 200-line is RGBI and 350-line is the RRGGBB 64 possible colors.

http://www.ctyme.com/intr/rb-0116.htm

https://en.wikipedia.org/wiki/Enhanced_Graphics_Adapter

@joncampbell123
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants