Page 1 of 1

Overlay support in SDL

Posted: Sat Mar 02, 2013 9:37 am
by Spirantho
Hi everybody,

Another SDL question. :)

Looking at the MAME source, in the SDL driver it supports overlay via a function SDL_CreateYUVOverlay(). However, when I run it using the YUV mode - which should create an overlay surface - the display is different but clearly not overlayed, as I can drag the window and the contents move around with the border, which shouldn't happen (and an overlay wouldn't grey out by the compositing). So it's clearly not doing something I expect it to.

What's happening here? Does the Amiga SDL implementation fake YUV overlay using standard libraries? Where can I see the source? I believe there's several implementations of SDL on the Amiga, but obviously I want the one that comes with AOS4...

Thanks for any help!

Re: Overlay support in SDL

Posted: Sat Mar 02, 2013 9:54 am
by ZeroG

Re: Overlay support in SDL

Posted: Mon Mar 04, 2013 3:53 pm
by salass00
Spirantho wrote: What's happening here? Does the Amiga SDL implementation fake YUV overlay using standard libraries? Where can I see the source? I believe there's several implementations of SDL on the Amiga, but obviously I want the one that comes with AOS4...
SDL itself implements a software fallback for overlay in src/video/SDL_yuv_sw.c. I couldn't find any overlay code anywhere in src/video/amigaos4/ so that is most likely what the AmigaOS 4.x SDL is using.