Sylvain Becker

Results 199 comments of Sylvain Becker

here's some PR https://github.com/libsdl-org/SDL/pull/7319

A python3 script would be really convenient for (window) users. But, here's a bad case, if you want to change `int foo(int a, char *b);` to `bar(char *b, int a);`...

Updating also my stuff. I've written (and generated) the rules to convert ARGB masks into pixel_format. This gives me this script to update SDL_image [SDL_migration_tmp.cocci.txt](https://github.com/libsdl-org/SDL/files/10152662/SDL_migration_tmp.cocci.txt) example of rules : ```...

I can propose some coccinelle file to see if that goes well. I believe it can handle most of basic renaming / permutation of argument. may be hard for complex...

so first shot: https://github.com/libsdl-org/SDL/pull/7042 // - all function renaming (without parameter change) as in SDL_oldnames.h // - remove SDL_WINDOW_SHOWN // - migrate SDL_CreateRGB* and SDL_ConvertSurface* functions

yes, it does that quite easily: ``` @@ SDL_Surface *surf; @@ - surf->format + surf->foo ``` also need to have ``` @@ SDL_Surface surf; @@ - surf.format + surf.foo ```

maybe we could remove the "warning C4244: 'function': conversion from 'int' to 'float'," from being treated as an error ?

it was more to have a convenient API . eg: you to {get,set} the {viewport,cliprect} using the same variable used with a FRect function. but maybe not usefull (indeed internally,...

@sezero yes, this is done thanks ! Should be ok !

@sezero thanks ! I've fixed. The whole thing is mostly a draft now ... I just want to call "gendynapi.pl" at the very last moment, to avoid merge each time...