Overlay support in SDL

This forum is for general developer support questions.
Post Reply
Spirantho
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 34
Joined: Thu Jan 26, 2012 10:54 am

Overlay support in SDL

Post 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!
User avatar
ZeroG
Posts: 124
Joined: Sat Jun 18, 2011 12:31 pm
Location: Germany

Re: Overlay support in SDL

Post by ZeroG »

User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 534
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland
Contact:

Re: Overlay support in SDL

Post 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.
Post Reply