Skip to content

Commit

Permalink
Eliminate duplicate video modes
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 8, 2006
1 parent ac8fec0 commit 55c0d1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/directfb/SDL_DirectFB_video.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 55c0d1f

Please sign in to comment.