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

heathkit/tlb.cpp: Reverse bits in font roms to avoid doing it on scanout #11842

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

mgarlanger
Copy link
Contributor

Reversing the bits during device_start() avoids having to do it for every scan line when using the imaginator slot device, since the font bits are reverse from the pixel layout and one would be need be reversed.
Reversing is also needed for the SigmaSoft IGC in this open PR - #11801 Depending on which PR is merged first, I will update the other PR to properly handle this.

Comment on lines 219 to 222
memory_region *region = device().memregion("chargen");
int font_rom_size = (region != nullptr)? region->bytes() : 0;

for(int i = 0; i < font_rom_size; i++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since m_p_chargen is a required_region_ptr, you can’t get here if the memory region doesn’t exist. You can also call .length() on it to get the length in elements, and you don’t need to call .device() to get device_t members in a device_t implementation.

@cuavas cuavas merged commit ab699b6 into mamedev:master Dec 16, 2023
5 checks passed
Luigi30 pushed a commit to Luigi30/mame that referenced this pull request Dec 16, 2023
einstein95 pushed a commit to einstein95/mame that referenced this pull request Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants