Skip to content

Commit

Permalink
Always show the minimum resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Jun 12, 2014
1 parent 8edbae9 commit c7d8f56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video.cpp
Expand Up @@ -579,6 +579,8 @@ std::vector<std::pair<int, int> > CVideo::get_available_resolutions()
result.push_back(std::make_pair(mode.w, mode.h));
}
}
if(std::find(result.begin(), result.end(), min_res) == result.end())
result.push_back(min_res);

std::sort(result.begin(), result.end());
result.erase(std::unique(result.begin(), result.end()), result.end());
Expand Down

0 comments on commit c7d8f56

Please sign in to comment.