Skip to content

Commit

Permalink
DisplayMode: Sort modes primarily by ascending width
Browse files Browse the repository at this point in the history
Makes for a slightly better organized appearance compared to
ascending height.
  • Loading branch information
skyjake committed Apr 1, 2012
1 parent edb9aa4 commit 6487135
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/con_busy.c
Expand Up @@ -528,7 +528,7 @@ static void Con_DrawScreenshotBackground(float x, float y, float width, float he
GLint p; \
glGetIntegerv(GL_TEXTURE_BINDING_2D, &p); \
Sys_GLCheckError(); \
if(p != tex) fprintf(stderr, "tex=%i, got %i at line %i\n", tex, p, __LINE__); \
assert(p == tex); \
}
#else
#define _assertTexture(tex)
Expand Down
8 changes: 4 additions & 4 deletions doomsday/engine/portable/src/displaymode.cpp
Expand Up @@ -70,9 +70,9 @@ struct Mode : public DisplayMode

bool operator < (const Mode& b) const
{
if(height == b.height)
if(width == b.width)
{
if(width == b.width)
if(height == b.height)
{
if(depth == b.depth)
{
Expand All @@ -81,9 +81,9 @@ struct Mode : public DisplayMode
}
return depth < b.depth;
}
return width < b.width;
return height < b.height;
}
return height < b.height;
return width < b.width;
}

void updateRatio()
Expand Down

0 comments on commit 6487135

Please sign in to comment.