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

[rpi] Hardware surfaces lack transparency (198) #213

Closed
GalacticEmperor1 opened this issue Feb 12, 2023 · 0 comments
Closed

[rpi] Hardware surfaces lack transparency (198) #213

GalacticEmperor1 opened this issue Feb 12, 2023 · 0 comments
Labels
bug Not working as intended Surface pygame.Surface

Comments

@GalacticEmperor1
Copy link
Collaborator

Issue №198 opened by illume at 2014-04-04 01:41:14

Originally reported by: Alecks Gates (Bitbucket: alecksag, GitHub: Unknown)


I'm running pygame-1.9.2_pre20120101-r2 on Gentoo with SDL_VIDEOBACKEND=directfb, where directfb is using the hardware accelerated fbdev system on a raspberry pi.

Upon loading a png image with transparency, I can blit it to the screen surface without a hitch -- transparency is fine.

If I smoothscale the image I lose all transparency -- the transparent pixels are white on blit. convert_alpha() on the image gives a blank surface.

The same code works fine using the software renderer, i.e. on the X server on the pi and even other hardware.

Some framebuffer details:

/boot/config.txt contains:
framebuffer_depth=32
framebuffer_ignore_alpha=1
framebuffer_swap=1 (necessary for colors to work right on directfb)

/etc/directfbrc contains:
system=fbdev
pixelformat=RGB32

fbset -s gives:
rgba 8/16,8/8,8/0,8/24



Comments

# # MyreMylar commented at 2020-05-02 09:26:42

Did some investigation into this. The main problem seems to be that the directfb project has been basically dead for many years:

DirectFB/directfb#1

Effort in this space now all seems instead to be going towards a project called Wayland which also has an sdl2 backend, but as far as I can see raspberry pi are not moving to wayland (see: https://joshondesign.com/2018/03/26/linux_graphics_state and https://www.raspberrypi.org/blog/buster-the-new-version-of-raspbian/# comment-1511261). So I'm not sure what we can do about this issue anymore, or if we should given the apparent dead-ness of directfb.

There is a chance it just works now on newer versions of pygame, but heck knows if you can even install directfb on raspberry pi anymore, I could't find any working instructions and everything online was from about 8 years ago.

I think this is the original reporter @agates so perhaps they can provide some follow up on whether we should just close this?


# # agates commented at 2020-05-02 14:53:50

Yup, that's me!

I would close this. At least on Gentoo, you can't even install media-libs/libsdl with directfb support any more.

@GalacticEmperor1 GalacticEmperor1 added bug Not working as intended minor Surface pygame.Surface labels Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended Surface pygame.Surface
Projects
None yet
Development

No branches or pull requests

1 participant