Disable code for SDL2 in detect_video_settings.
This part of the code probably needs to be rewritten for SDL2, so add a small band-aid for now.
This commit is contained in:
parent
e2e029b6e0
commit
a5ebded0cb
1 changed files with 3 additions and 0 deletions
|
@ -68,10 +68,13 @@ bool detect_video_settings(CVideo& video, std::pair<int,int>& resolution, int& b
|
|||
resolution = preferences::resolution();
|
||||
|
||||
int DefaultBPP = 24;
|
||||
#if !SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
/* This needs to be fixed properly. */
|
||||
const SDL_VideoInfo* const video_info = SDL_GetVideoInfo();
|
||||
if(video_info != NULL && video_info->vfmt != NULL) {
|
||||
DefaultBPP = video_info->vfmt->BitsPerPixel;
|
||||
}
|
||||
#endif
|
||||
|
||||
std::cerr << "Checking video mode: " << resolution.first << 'x'
|
||||
<< resolution.second << 'x' << DefaultBPP << "...\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue