Eliminate duplicate video modes
authorSam Lantinga <slouken@libsdl.org>
Mon, 08 May 2006 04:19:03 +0000
changeset 1777402d5ff1cf88
parent 1776 ed39aa7383ea
child 1778 e28233f37f8c
Eliminate duplicate video modes
src/video/directfb/SDL_DirectFB_video.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_video.c	Mon May 08 03:49:51 2006 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_video.c	Mon May 08 04:19:03 2006 +0000
     1.3 @@ -191,6 +191,9 @@
     1.4  
     1.5    HIDDEN->nummodes++;
     1.6  
     1.7 +  if (enumlist && enumlist->r.w == width && enumlist->r.h == height)
     1.8 +    return DFENUM_OK;
     1.9 +
    1.10    enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect));
    1.11    if (!enumrect)
    1.12      {