Re: [hatari-devel] SDL 2.0

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 14/08/2013 19:39, Eero Tamminen a écrit :
I don't think we'd want to support both SDL 1.x and SDL 2.x at the same
time, at least not in the same HG branch.

IMHO it's better to wait until SDL 2.x will be in most distros
(by the time next Hatari version will be released), and do the switch
in one go.
-> I wonder whether it makes sense to try to get SDL 2.x support
    to next Hatari release, it seems as it would be safer to aim for
    one after that.


Hello

welle first we should try to compile current Hatari source and see on what it stops with sdl 2.0.

SDL provides some macro at compile time to check the detected version, so it would be possible to support both SDL version.

Unfortunately, I think it will take 1 or 2 years before various ditros all have sdl 2.

In the meantime, I don't know when next hatari will be released (maybe a short 1.7.1 upgrade first or a bigger 1.8 later), but I think we will have to support both version of SDL :

- as you say, if some platforms were dropped, we can keep the current sdl 1.2 code available for them

- on the other side, even without looking at new functionalities (surface with HW acceleration for example), SDL 2 will fix some OSX compatibilities which users often complained about (fullscreen)

As many programs requiring SDL will certainly not be rewritten/adpated immediatly, I think distros will provide the possibility to have SDL 1.2 and SDL 2.0 at the same time, so Hatari should be able to detect it at compile time and use one of the 2.

But in all cases, before deciding what to do, we should try to compile Hatari in its current state with SDL 2.0 and see what need to be adapted with the least minimal changes.

Once this is done, we can consider the SDL 1.2 support in Hatari "frozen" and say that any new features or optimisations (zoom, unicode, ....) should use SDL 2.0.


I will try to test this, but not before september as I will be away 2 weeks.

Nicolas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/