Eliminate duplicate video modes

This commit is contained in:
Sam Lantinga
2006-05-08 04:19:03 +00:00
parent 0456bd7dc9
commit 722aba1781

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)
{