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
Lispbuilder's documentation states that, if SDL:WINDOW has not yet been called, then SDL:VIDEO-DIMENSIONS returns "the best video dimensions" (presumably this means the native desktop resolution, which is the intent). However it returns NIL if this is the case:
And of course it crashes on aref because best-res was returned as NIL.
It does returns a 2-element vector just fine if a WINDOW was already made, but in this instance I want it to memorize the native desktop resolution before my program makes any windows.
The text was updated successfully, but these errors were encountered:
For some reason SDL_GetVideoInfo is returning a null pointer, which is why (sdl:video-dimensions) returns nil. I need to do some digging to find out why SDL is suddenly behaving like this. I know for sure this used to work.
Lispbuilder's documentation states that, if SDL:WINDOW has not yet been called, then SDL:VIDEO-DIMENSIONS returns "the best video dimensions" (presumably this means the native desktop resolution, which is the intent). However it returns NIL if this is the case:
And of course it crashes on aref because best-res was returned as NIL.
It does returns a 2-element vector just fine if a WINDOW was already made, but in this instance I want it to memorize the native desktop resolution before my program makes any windows.
The text was updated successfully, but these errors were encountered: