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

SDL_FontCache draws nothing if font was created while the window was hidden. #44

Open
midn1 opened this issue Mar 7, 2020 · 1 comment
Assignees
Labels

Comments

@midn1
Copy link

midn1 commented Mar 7, 2020

This took me a while to track down. Passing SDL_WINDOW_HIDDEN to SDL_CreateWindow and calling SDL_ShowWindow after FC_LoadFont seems to makes SDL_FontCache draw nothing, or at least seemingly. Or, in other words, the window must be not hidden when FC_LoadFont is called.

If this is intentional behaviour, then this should definitely be documented somewhere. Sorry if it is and I missed it.

@midn1 midn1 changed the title SDL_FontCache draws nothing if font was created while the window was hidden SDL_FontCache draws nothing if font was created while the window was hidden. Mar 7, 2020
@grimfang4
Copy link
Owner

Certainly not intended, but it may be unavoidable. I expected that a hidden window would still offer a valid off-screen rendering context, but that seems not to be the case!

Yes, this should be confirmed and documented.

@grimfang4 grimfang4 self-assigned this Mar 7, 2020
@grimfang4 grimfang4 added the bug label Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants