AmigaPorts / MilkyTracker

An FT2 compatible music tracker - For Amiga platforms (OS3.x, OS4.x, WarpOS, MorphOS, AROS)
https://dl.amigadev.com/nightly/milkytracker
Other
17 stars 2 forks source link

AROS fixes #12

Closed MBeijer closed 6 years ago

MBeijer commented 6 years ago

differentiate between sdl versions used when calling this function, to avoid complaints about wrong number of arguments.

capehill commented 6 years ago

If we want to differentiate between SDL1 and SDL2, we could also use the macro:

if SDL_VERSION_ATLEAST(2, 0, 0)

// SDL2 things

else

// SDL1 things

endif

https://wiki.libsdl.org/SDL_VERSION_ATLEAST https://github.com/scummvm/scummvm/blob/d3a831644c7b9a31b2b74824b7638072a6630fda/backends/platform/sdl/sdl-window.cpp#L130

MBeijer commented 6 years ago

That's true

MBeijer commented 6 years ago

Btw, this file isn't even used if you use my premake script. I've had in mind to merge the sdl-1.2 and sdl-2 code and use #ifdef's for the things that differ, but haven't gotten around to it yet. :P

MBeijer commented 6 years ago

This gets fixed in #17