From 64871354b53eed508cb18928a889b708564e7d32 Mon Sep 17 00:00:00 2001 From: skyjake Date: Sun, 1 Apr 2012 12:17:47 +0300 Subject: [PATCH] DisplayMode: Sort modes primarily by ascending width Makes for a slightly better organized appearance compared to ascending height. --- doomsday/engine/portable/src/con_busy.c | 2 +- doomsday/engine/portable/src/displaymode.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doomsday/engine/portable/src/con_busy.c b/doomsday/engine/portable/src/con_busy.c index 729591802a..f095025971 100644 --- a/doomsday/engine/portable/src/con_busy.c +++ b/doomsday/engine/portable/src/con_busy.c @@ -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) diff --git a/doomsday/engine/portable/src/displaymode.cpp b/doomsday/engine/portable/src/displaymode.cpp index be19daec18..80476278c3 100644 --- a/doomsday/engine/portable/src/displaymode.cpp +++ b/doomsday/engine/portable/src/displaymode.cpp @@ -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) { @@ -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()