Eliminate duplicate video modes
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401736
This commit is contained in:
parent
c9fe6a7e45
commit
064c583f72
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue