gwenhael-le-moine / x48ng

a reboot of the x48 HP 48 emulator
GNU General Public License v2.0
37 stars 4 forks source link

Possible to scale interface size? #9

Closed bragostin closed 1 year ago

bragostin commented 1 year ago

Thank you so much for publishing this! Reminds me of my student times, best calculator I ever had! I have a 4K monitor and the interface is therefore quite small and difficult to use. Do you think it is possible to either have a scaling option at startup or at compilation time?

edson-acordi commented 1 year ago

I use it on a monitor with HD resolution. Other than scaling it to greater than 100%, is there a way to implement scaling less than 100%?

gwenhael-le-moine commented 1 year ago

I'm wondering what's the best path here. On one hand I naively think introducing a scaling factor in the UI drawing code looks possible, although a moderately big task. On the other hand I think maybe writing a gtk4 (for example) GUI would be better in the long term.

Not sure where to go from there.

bragostin commented 1 year ago

@gwenhael-le-moine I first tried using run_scaled from https://github.com/kaueraal/run_scaled but it's crashing. It would be a simple solution though.

gwenhael-le-moine commented 1 year ago

I've looked at it briefly too but it looked much heavier than I expected.

That said I routinely sit in front of various screens (1920x1080 laptops, 15 and 13 inches, 1920x1200 24 inches desktop and 4K 27 inches desktop) and I've not felt uncomfortable using x48ng (yet.) Does your use-case differ from mine?

bragostin commented 1 year ago

@gwenhael-le-moine maybe just my eye sight ;) It's definitely usable, but uncomfortable. Maybe this run_scaled script can be made to work with x48ng?

gwenhael-le-moine commented 1 year ago

@bragostin @edson-acordi After finding new energy I pushed many new versions and the last one enables "resizability" of the UI (which is now sdl1). Resizing the window by hand scales the UI.

It's not yet a --scale option but I hope it helps.