adding new resolutions (linux)

4 replies [Last post]
jose1711
User offline. Last seen 3 years 32 weeks ago. Offline
Joined: 2008-06-20
Posts: 80

hello,

i know hedgewars can only use resolutions that sdl offers/lists but has anyone succeeded in adding a new non-fullscreen resolution via xrandr addmode/newmode? i tried adding 642x482 (only to test) but hedgewars still does not list it.

thanks,

jose

Smaxx
Smaxx's picture
User offline. Last seen 12 years 50 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

It's more like a SDL question so I'd suggest asking at their page. Essentially you just have to get your resolution to show up for SDL so it reports it and you're able to select and use it.

nemo
nemo's picture
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

http://hedgewars.org/faq.html#n1304

This question might help?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

jose1711
User offline. Last seen 3 years 32 weeks ago. Offline
Joined: 2008-06-20
Posts: 80

not really, the resolutions of separate displays are included. the goal is to get arbitrary resolution so i can make a game-window of specific size. tried with xrandr, metamodes but failed. *me* shrugs

nemo
nemo's picture
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Right, that's the point of that FAQ entry, to allow specifying arbitrary resolutions.

Now, what we probably should do is allow specifying arbitrary resolutions for the game window, separate from the fullscreen size (which would have to be monitor-based)

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]