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

Have a _sdl2 mode where make_surface is never called whith alpha=True #470

Open
cbdj opened this issue Jul 28, 2023 · 0 comments
Open

Have a _sdl2 mode where make_surface is never called whith alpha=True #470

cbdj opened this issue Jul 28, 2023 · 0 comments

Comments

@cbdj
Copy link

cbdj commented Jul 28, 2023

Is your feature request related to a problem? Please describe.
When using pygame-menu(-ce) in sdl2 mode, we get exceptions each time make_surface is called with alpha=True :

No video mode has been set
File "C:\Users*****\AppData\Local\Programs\Python\Python311\Lib\site-packages\pygame_menu\utils.py", line 434, in make_surface
surface = pygame.Surface.convert_alpha(surface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Describe the solution you'd like
convert_alpha should no more be called as it no longer provide much improvement in normal mode, and breaks sdl2 mode.

Describe alternatives you've considered
Or there should be a sdl2 mode...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant