Reverse the order video modes are sorted in

git-svn-id: https://svn.eduke32.com/eduke32@7922 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-08 01:49:00 +00:00 committed by Christoph Oelckers
parent 32cd1ae4dd
commit 0d431a390f
2 changed files with 4 additions and 4 deletions

View file

@ -1149,8 +1149,8 @@ void(*timerSetCallback(void(*callback)(void)))(void)
static int sortmodes(const void *a_, const void *b_)
{
auto a = (const struct validmode_t *)a_;
auto b = (const struct validmode_t *)b_;
auto a = (const struct validmode_t *)b_;
auto b = (const struct validmode_t *)a_;
int x;

View file

@ -1750,8 +1750,8 @@ static int sortmodes(const void *a_, const void *b_)
{
int32_t x;
const struct validmode_t *a = (const struct validmode_t *)a_;
const struct validmode_t *b = (const struct validmode_t *)b_;
const struct validmode_t *a = (const struct validmode_t *)b_;
const struct validmode_t *b = (const struct validmode_t *)a_;
if ((x = a->fs - b->fs) != 0) return x;
if ((x = a->bpp - b->bpp) != 0) return x;