You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess it's not valid to call SDL_LoadBMP with NULL. Obviously I can work-around this by calling SDL_ClearError immediately after the call to initscr() but I think it would be cleaner long-term if this call causing an invalid error could be avoided in the first place.
I found this out because I started annotating all of my calls to SDL with checks using SDL_GetError(), and this came up.
The text was updated successfully, but these errors were encountered:
Your right, I misunderstood what was happening yesterday. It's falling back to "pdcback.bmp" but that file doesn't exist, so SDL calls SDL_SetError which lead to the issue.
In this code path, SDL_GetError returns "Parameter 'src' is invalid" after the call to initscr.
The error comes from this code:
PDCurses/sdl2/pdcscrn.c
Lines 233 to 237 in f2d31a2
I guess it's not valid to call SDL_LoadBMP with NULL. Obviously I can work-around this by calling SDL_ClearError immediately after the call to
initscr()
but I think it would be cleaner long-term if this call causing an invalid error could be avoided in the first place.I found this out because I started annotating all of my calls to SDL with checks using SDL_GetError(), and this came up.
The text was updated successfully, but these errors were encountered: