laamaa / m8c

Cross-platform M8 tracker headless client
Other
377 stars 80 forks source link

Possible to specify resolution / dpi ? #155

Closed markpendlebury closed 11 hours ago

markpendlebury commented 5 days ago

Apologies this isn't really an issue more a question. I've looked through the docs/config and i don't see anything that suggests that this is possible.

Basically wondering if it's possible to specify the resolution of m8c? I'm running on steamdeck and honestly it runs perfectly but i do feel maybe the text / rendering is a little on the large side? So wondering if it's possible via the config file or some other way to specify a resolution?

Thanks

laamaa commented 4 days ago

Hi,

Unfortunately there's no separate option for that and I'm not sure there's an easy way to do it since SDL2 handles all the rendering stuff.

Normally the program tries to create a window that's the M8 resolution (320x240 or 480x320) but doubled, and if the window is scaled it tries to keep the aspect ratio correct. Unfortunately I don't own a Steam Deck so I don't know how it works there...

markpendlebury commented 11 hours ago

Hi,

Sorry for the slow reply, Github didn't notify me of your reply for some reason.

I think I'm following what you're talking about. I've tried adjusting line 33 and 34 on renderer.c and forcing fullscreen but it seems i am in fact seeing what you're explaining. The window its self fits to the specified resolution and initially startes without the boarder / window frames etc but the actual DPI remains the same.

I'll take a look at SDL2 and see if it's possible to implement on that side of things

Keep up the good work! Thanks