Using the VideoOverlay module in full-screen mode
Cameron Cawley (3514) 158 posts |
I’m hoping to be able to support hardware YUV overlays in the RISC OS version of SDL 1.2 using the VideoOverlay module. Looking at the documentation though, it appears to be tied to the Wimp, while SDL 1.2 supports running in both windowed and full-screen mode. Is it possible to easily configure overlays for use in full-screen mode or is it necessary to switch to using GraphicsV directly or the built-in software fallback when activating full-screen mode? |
André Timmermans (100) 655 posts |
I worked around the issue of full-screen in KinoAmp by defining a window covering the area were the overlay should appear. You can check the sources here. Look at mt_setupWindow in c/mt on how I define the player’s window and attach the overlay to it. All the other overlay functions are defined in c/display if you need some pointers on how to use the overlay API. |
Jeffrey Lee (213) 6048 posts |
Adding proper support for full-screen/single-tasking usage has always been on the todo list, I just haven’t got round to it yet. It should be fine to use either the workaround that André found, or to call Graphics directly. Most of the SWIs offered by the VideoOverlay module are simple wrappers around GraphicsV calls, so it shouldn’t be that hard to adapt SDL to support switching between the two (the only non-trivial part of the VideoOverlay module is the bit which walks the window stack to work out how much of each overlay is visible – a non-issue for full-screen use) |