# HG changeset patch # User Sam Lantinga # Date 1147061943 0 # Node ID 402d5ff1cf88aa41860d5ce686b148dca7646bae # Parent ed39aa7383ead8f6560de4645f1e3345aaec9cd8 Eliminate duplicate video modes diff -r ed39aa7383ea -r 402d5ff1cf88 src/video/directfb/SDL_DirectFB_video.c --- a/src/video/directfb/SDL_DirectFB_video.c Mon May 08 03:49:51 2006 +0000 +++ b/src/video/directfb/SDL_DirectFB_video.c Mon May 08 04:19:03 2006 +0000 @@ -191,6 +191,9 @@ HIDDEN->nummodes++; + if (enumlist && enumlist->r.w == width && enumlist->r.h == height) + return DFENUM_OK; + enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect)); if (!enumrect) {