| Summary: | RaspberryPI ability to specify a Dispmanx layer | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Albert Casals <skarbat> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | amaranth72, philipp.wiesemann |
| Version: | 2.0.4 | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| Attachments: |
Changeset implements the use of SDL_RPI_VIDEO_LAYER environment variable
Changeset to implement SDL_RPI_VIDEO_LAYER using a Hint SDL dispmanx layer using a Hint Updated patch with fixed hint name |
||
This seems like it should be implemented as a SDL_Hint rather than a plain environment variable. SDL hints can be set either via an environment variable or through the SDL_SetHint API. Created attachment 2505 [details]
Changeset to implement SDL_RPI_VIDEO_LAYER using a Hint
Using a hint for SDL_RPI_VIDEO_LAYER rather than an environment variable.
Also position the mouse layer correctly above it, in cases where it is needed.
Created attachment 2506 [details]
SDL dispmanx layer using a Hint
Apologies, I must have attached the wrong patch on previous post.
The name of the hint should start with "SDL_HINT_": #define SDL_HINT_RPI_VIDEO_LAYER "SDL_RPI_VIDEO_LAYER" Created attachment 2526 [details]
Updated patch with fixed hint name
Thanks - uploading updated diff file.
Is there anything I can do further to make this patch go upstream? Sam, any chance we can get this changeset upstream? Fixed, thanks! https://hg.libsdl.org/SDL/rev/c1bb718f6c3f |
Created attachment 2504 [details] Changeset implements the use of SDL_RPI_VIDEO_LAYER environment variable On a RaspberryPI, it might become convenient to specify the Dispmanx layer SDL uses. Currently, it is hardcoded to be 10000 to sit above most applications. This can be specially useful when integrating other graphical apps and frameworks like OMXplayer, QT5 etc.. in order to have more flexibility on their Z-order. The attached changeset allows to export SDL_RPI_VIDEO_LAYER with the desired layer number.