tonioni / WinUAE

WinUAE Amiga emulator
http://www.winuae.net/
552 stars 90 forks source link

Feature: 2x scaling for the native on-screen display #278

Closed johnnovak closed 9 months ago

johnnovak commented 10 months ago

The native on-screen display is a great feature and I use it all the time. But it's quite small which is a problem for people with less-than-perfect eyesight, and a potential problem for everyone at higher screen resolutions than 1080p.

Would it be possible to add at least a 2x integer scaling option to the OSD? I've done a mockup, I think it would look nice.

The ideal solution would be to render it with a better font at a size that's somewhere between the current size and the 2x integer scaled size (or make it configurable), but a simple 2x integer scaling would be a nice quick win.

Current at 1080p

image

Mockup of OSD with 2x scaling at 1080p

image

tonioni commented 10 months ago

Scaling was already possible by undocumented config file entry (show_leds_size and show_leds_size_rtg, parameter is decimal multiplier) but latest beta now has also OSD font type/size selection (misc panel) which hopefully is much more useful.

johnnovak commented 10 months ago

Scaling was already possible by undocumented config file entry (show_leds_size and show_leds_size_rtg, parameter is decimal multiplier) but latest beta now has also OSD font type/size selection (misc panel) which hopefully is much more useful.

That's great, trying it today! 🚀

johnnovak commented 10 months ago

It works splendidly @tonioni, great addition! It even handles very large fonts correctly as shown on the below screenshot, great!

I noticed I can only change the OSD font in "windowed" mode. In "fullscreen" and "full-windowed" modes, changing the OSD font doesn't have any effect. Is this intentional?

image

tonioni commented 10 months ago

No. Changing OSD font while in full-window or fullscreen mode saved the config incorrectly, making it no-op. Fixed.

johnnovak commented 10 months ago

Confirming the fix works @tonioni — now I can change the OSD font in full-window and fullscreen mode too. Thanks! 👍🏻

The OSD now works perfectly, but I noticed a small glitch with the floppy insertion message. As you can see, the top of the letters is cut off (view at 100% zoom):

image

That's with Lucida Console, Regular, size 10.

image

Ok, let's see how it behaves with a much larger font, let's check out size 16:

image

Now the floppy message is perfect... but the OSD is misaligned and being clipped. Forcing a refresh/redraw by switching to full-windowed then back to windowed fixes it:

image


So, two remaining issues:

johnnovak commented 9 months ago

All visual glitches when changing the font size are fixed in 5.2.0 b7, thanks @tonioni.