Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RaspberryPI ability to specify a Dispmanx layer #2201

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

RaspberryPI ability to specify a Dispmanx layer #2201

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.4
Reported for operating system, platform: Linux, ARM

Comments on the original bug report:

On 2016-06-21 18:26:24 +0000, Albert Casals wrote:

Created attachment 2504
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.

On 2016-06-21 19:56:18 +0000, Alex Szpakowski wrote:

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.

On 2016-06-22 11:53:48 +0000, Albert Casals wrote:

Created attachment 2505
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.

On 2016-06-22 21:11:09 +0000, Albert Casals wrote:

Created attachment 2506
SDL dispmanx layer using a Hint

Apologies, I must have attached the wrong patch on previous post.

On 2016-07-02 21:39:33 +0000, Philipp Wiesemann wrote:

The name of the hint should start with "SDL_HINT_":

#define SDL_HINT_RPI_VIDEO_LAYER "SDL_RPI_VIDEO_LAYER"

On 2016-07-04 20:03:51 +0000, Albert Casals wrote:

Created attachment 2526
Updated patch with fixed hint name

Thanks - uploading updated diff file.

On 2016-07-18 08:29:15 +0000, Albert Casals wrote:

Is there anything I can do further to make this patch go upstream?

On 2016-09-16 16:28:53 +0000, Albert Casals wrote:

Sam, any chance we can get this changeset upstream?

On 2016-10-19 06:25:12 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL/rev/c1bb718f6c3f

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant