Commit 064c583f authored by Sam Lantinga's avatar Sam Lantinga

Eliminate duplicate video modes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401736
parent c9fe6a7e
...@@ -191,6 +191,9 @@ static DFBEnumerationResult EnumModesCallback (int width, ...@@ -191,6 +191,9 @@ static DFBEnumerationResult EnumModesCallback (int width,
HIDDEN->nummodes++; HIDDEN->nummodes++;
if (enumlist && enumlist->r.w == width && enumlist->r.h == height)
return DFENUM_OK;
enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect)); enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect));
if (!enumrect) if (!enumrect)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment