Eliminate duplicate video modes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401736
This commit is contained in:
Sam Lantinga 2006-05-08 04:19:03 +00:00
parent c9fe6a7e45
commit 064c583f72

View file

@ -191,6 +191,9 @@ static DFBEnumerationResult EnumModesCallback (int width,
HIDDEN->nummodes++;
if (enumlist && enumlist->r.w == width && enumlist->r.h == height)
return DFENUM_OK;
enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect));
if (!enumrect)
{