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
video/mc6845.cpp: Restore support for zero active width/height configuration #12007
Conversation
…nfiguration. (mamedev#11756)"" This reverts commit 064d676.
This breaks everything that sets "show borders". |
It fixes 2 dozen-ish drivers that just crash. |
No, those drivers don't crash because I backed out the problematic change before it made it into a release. This re-applies the problematic change and then attempts to hack around it. |
Then you should've noted that on this PR and closed it. |
The problematic change was merged at the beginning of the 0.262 development cycle (end of novermber or early December), to allow plenty of time for testing and fixing issues that surfaced: 5e1b719 Since the issues weren’t fixed two months later, it was reverted before 0.262: 064d676 There was no release including the problematic change, and breaking systems that draw to the border area right before release isn’t a good look.
I thought it was obvious from the content of the second commit what the effect of the PR would be. |
It wasn't obvious, and PRs with known problems should have those problems noted on them so that they then are obvious. That also allows us to auto-close abandoned PRs after some amount of time so we don't have 120-odd open that will probably never be applied. |
fwiw I commented on those two setters later on. mame/src/devices/video/mc6845.h Lines 65 to 68 in 1af40e3
|
Better communication would definitely be appreciated. Since there was no comments for 7 weeks and a few other PRs I opened were reviewed, I assumed there was an issue, but an actual comment would have helped. Due to the potentially unsafe methods pointed out by angelosa, it seems testing of all systems using 6845 would be needed to verify this change (or similar change). Since this change was only needed to enable the screen saver(blank) effect on a replacement ROM for the H19, it doesn't seem worth it to devote more time to it. I have an alternative idea that should have less of an impact on other systems, that I may try in the future, but for now blanking the screen will just not work. It would be nice if someone more experienced took the time to replace/rework the 6845 to get the 2 interlace modes working, and make it safer for future changes. I have another PR for some interlace functionality - #11504 that I haven't been able to make any progress on, I'll just close that one. |
Verified with the build artifacts on this PR that the DE check prevents the crash in Windows (tested with a load prior to the original revert and saw the crash to verify my setup).