Skip to content
Permalink
Browse files

Eliminate duplicate video modes

  • Loading branch information
slouken committed May 8, 2006
1 parent ac8fec0 commit 55c0d1f3e460027afe11dad15e19c3cbef2df211
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/directfb/SDL_DirectFB_video.c
@@ -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)
{

0 comments on commit 55c0d1f

Please sign in to comment.