Removed commented-out code from 2005.
This commit is contained in:
parent
fe8e0b5237
commit
2cf4902eb5
1 changed files with 0 additions and 9 deletions
|
@ -161,15 +161,6 @@ void set_resolution(const std::pair<int,int>& resolution)
|
|||
bool set_resolution(CVideo& video
|
||||
, const unsigned width, const unsigned height)
|
||||
{
|
||||
// - Ayin: disabled the following code. Why would one want to enforce that?
|
||||
// Some 16:9, or laptop screens, may have resolutions which do not
|
||||
// comply to this rule (see bug 10630).
|
||||
// I'm commenting this until it proves absolutely necessary.
|
||||
//
|
||||
// Make sure resolutions are always divisible by 4
|
||||
//res.first &= ~3;
|
||||
//res.second &= ~3;
|
||||
|
||||
SDL_Rect rect;
|
||||
SDL_GetClipRect(video.getSurface(), &rect);
|
||||
if(rect.w == width && rect.h == height) {
|
||||
|
|
Loading…
Add table
Reference in a new issue