Ticket #652 (Open)Thu Sep 12 17:52:50 UTC 2024
BatMgr uses incorrect font size in non EX1 EY1 modes
Reported by: | Cameron Cawley (3514) | Severity: | Normal |
Part: | RISC OS: Module | Release: | |
Milestone: | Status | Open |
Details by Cameron Cawley (3514):
If the screen mode is changed to an EX0 EY0 mode, then the font size will be twice as big as it should be when the status is next update.
Changelog:
Modified by Sprow (202) Sun, September 29 2024 - 22:36:48 GMT
- Summary changed from BatMgr uses incorrect font size in high DPI modes to BatMgr uses incorrect font size in non EX1 EY1 modes
- Part changed from Unspecified to RISC OS: Module
Had a quick look, the text will be the wrong size in anything other than EX1 EY1 modes. This is because Wimp_ReadSysInfo is used to read the desktop font handle (which also conveys the current DPI selection) and is then used to plot into a mode 28 off screen sprite buffer. Ideally a resolution matched sprite would be used per mode like Alarm does, except there are a few other places where the eigenfactor is assumed at present which would need updating too.
On the plus side I’ve filled in the missing system font support, so it now plots text if you have that selected, and since the Wimp deals with sprite plotting it doesn’t suffer from scaling oddities if the eigenfactors change.
Modified by Sprow (202) Sun, October 06 2024 - 21:55:21 GMT
- Attachment added: BatMgr.zip
This caught my interest sufficiently that I’ve beaten the eigenvalues into submission, the attached test module should plot the text at the right size now.