Removed commented-out code from 2005.

This commit is contained in:
Karol Nowak 2011-06-15 20:54:00 +00:00
parent fe8e0b5237
commit 2cf4902eb5

View file

@ -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) {