Hi all! I'm going to have a lan between my MacPro and my AmigaOne at Battle For Wesnoth.... i can't change resolution under OS4 version... why? I want to use 1280x1024 but it loads automatically 1024x768. Under preferences i see no video moses available.
It seems the SDL_ListModes() function doesn't return any screenmodes. I'll see if I can replace it with a hardcoded list of the most common ones (800x600, 1024x768, 1280x960, 1280x1024).
[edit] Works very nicely indeed. I think I'll upload an updated exe to OS4Depot...
It seems the SDL_ListModes() function doesn't return any screenmodes. I'll see if I can replace it with a hardcoded list of the most common ones (800x600, 1024x768, 1280x960, 1280x1024).
the SDL_ListModes() under amigaos returns -1 that means that all video modes are correct. Under other OS not all video modes are available and so it returns a pointer of video modes. so the only solution i've found into the SDL games ported on the amiga is to hardcode the video modes. (Like Wormux) as i seaid in the past, if you hav made some changes, please send the patches to the developers so we can compile Wesnoth without difficulty
don't you think it would be a much better idea to implement SDL_ListModes() properly (i.e returning an array of available screenmodes) instead of hacking every single application/game using this function? Besides, your patches won't probably be welcome, as it means you want to submit some very particular cases to a "clean" and supposedly portable game .
What's the point of having SDL on OS4 if it's not compatible with the SDL specifications?
What's the point of having SDL on OS4 if it's not compatible with the SDL specifications?
You clearly haven't read them then. -1 is a possible and correct return code for SDL_ListModes(), and it means that any size is possible. So, no it isn't incompatible with SDL specs. It is Wesnoth behaves wrong in this case.
Quote:
Besides, your patches won't probably be welcome, as it means you want to submit some very particular cases to a "clean" and supposedly portable game .
It is still portable.
You obviously haven't looked at the sources. There are a lot more #ifdefs and #ifndefs for particular OSes than these two I proposed.
don't you think it would be a much better idea to implement SDL_ListModes() properly (i.e returning an array of available screenmodes) instead of hacking every single application/game using this function? Besides, your patches won't probably be welcome, as it means you want to submit some very particular cases to a "clean" and supposedly portable game .
What's the point of having SDL on OS4 if it's not compatible with the SDL specifications?
...well.. also in the 2007 the AmigaOS is the only OS that follow the rules.. and not the countrary..
How can I get wesnoth to use a specific card on a dual graphics card system?
AFAIK, you can't. SDL, as far as I understand, picks the first screenmode that it finds that best suits the requirements given by the application. It is not possible to control this from the program.
Theoretically I guess you could delete f.e. the 1024x768 screenmode (if that is the one you use in Wesnoth) from one of the gfxcards and SDL would have to use the other gfxcard. It's not a very nice solution though.