Skip to content

Commit

Permalink
DisplayMode: Ignore useless modes
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 22, 2012
1 parent 5d395c7 commit 7b2cabb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doomsday/engine/portable/src/displaymode.cpp
Expand Up @@ -187,7 +187,10 @@ int DisplayMode_Init(void)

for(int i = 0; i < DisplayMode_Native_Count(); ++i)
{
modes.insert(Mode(i));
Mode mode(i);
if(mode.depth < 16 || mode.width < 320 || mode.height < 240)
continue; // This mode is not good.
modes.insert(mode);
}

#ifdef _DEBUG
Expand Down

0 comments on commit 7b2cabb

Please sign in to comment.