SDL interface stability

From SDL-1.1.4 to SDL-1.1.5
function ‘void SDL_SetClipping’ has been changed in
function 'void SDL_bool SDL_SetClipRect’
but I haven’t found backwards compatibility macros
to make possible the dinamic link of the library
(ex. for upgrading SDL.DLL from 1.1.4 to 1.1.5 without recompiling).

Licence LGPL is about dinamic link, but how can I do it
if SDL interface has changed?

Thanks.
Bye.
Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.supereva.it

Windows ha eseguito una operazione non valida e sara` terminato.
Se il problema persiste, si consiglia di installare Linux.

From SDL-1.1.4 to SDL-1.1.5
function ‘void SDL_SetClipping’ has been changed in
function 'SDL_bool SDL_SetClipRect’
but I haven’t found backwards compatibility macros
to make possible the dinamic link of the library
(ex. for upgrading SDL.DLL from 1.1.4 to 1.1.5 without recompiling).

Licence LGPL is about dinamic link, but how can I do it
if SDL interface has changed?

Thanks.
Bye.
Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.supereva.it

From SDL-1.1.4 to SDL-1.1.5
function ‘void SDL_SetClipping’ has been changed in
function 'SDL_bool SDL_SetClipRect’
but I haven’t found backwards compatibility macros
to make possible the dinamic link of the library
(ex. for upgrading SDL.DLL from 1.1.4 to 1.1.5 without recompiling).

Licence LGPL is about dinamic link, but how can I do it
if SDL interface has changed?

Did you actually use SDL_SetClipping()? I only know of one program that
used it, and it has since been fixed to use the new code.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

tue 10 oct 2000 Sam Lantinga wrote:

Did you actually use SDL_SetClipping()? I only know of one program that
used it, and it has since been fixed to use the new code.

I patched it.

Since 1.1.5 is not yet ok, I have modified my sources like this

#if (SDL_PATCHLEVEL < 5)
SDL_SetClipping (Page, y1, x1, y2, x2);
#else
SDL_Rect Rect;
Rect.x = x1;
Rect.y = y1;
Rect.w = x2-x1+1;
Rect.h = y2-y1+1;
SDL_SetClipRect (Page,&Rect);
#endif

to compile using the correct function.
Don’t worry. It’s all ok!

Bye,
Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.supereva.it

Since 1.1.5 is not yet ok, I have modified my sources like this

#if (SDL_PATCHLEVEL < 5)
SDL_SetClipping (Page, y1, x1, y2, x2);
#else
SDL_Rect Rect;
Rect.x = x1;
Rect.y = y1;
Rect.w = x2-x1+1;
Rect.h = y2-y1+1;
SDL_SetClipRect (Page,&Rect);
#endif

to compile using the correct function.
Don’t worry. It’s all ok!

Well, that’s odd, because the two functions have completely different
meanings. SDL_SetClipping() sets the source clip rectangle, and
SDL_SetClipRect() sets the destination clip rectangle. If they both
work then something is fishy in your code. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

mercoled? 11 ottobre Sam Lantinga ha scritto:

Well, that’s odd, because the two functions have completely different
meanings. SDL_SetClipping() sets the source clip rectangle, and
SDL_SetClipRect() sets the destination clip rectangle. If they both
work then something is fishy in your code. :slight_smile:

Uh, you’re right! I haven’t tested 1.1.5 executable, because
when I saw the palette problem, I quitted.

Now I will check it, thanks.

Uhm,… and then, why you have remove SDL_SetClipping
and added SDL_SetClipRect ?
Do you thing SDL_SetClipping is a useless function ?

Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.supereva.it

Windows ha eseguito una operazione non valida e sara` terminato.
Se il problema persiste, si consiglia di installare Linux.

Well, that’s odd, because the two functions have completely different
meanings. SDL_SetClipping() sets the source clip rectangle, and
SDL_SetClipRect() sets the destination clip rectangle. If they both
work then something is fishy in your code. :slight_smile:

Uh, you’re right! I haven’t tested 1.1.5 executable, because
when I saw the palette problem, I quitted.

I rewrote some parts of my code so I don’t need
SDL_SetClipping or SDL_SetClipRect anymore.
…and now there are no problems. :slight_smile:

Bye.
Enzo.