Mercurial > sdl-ios-xcode
changeset 1777:402d5ff1cf88
Eliminate duplicate video modes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 08 May 2006 04:19:03 +0000 |
parents | ed39aa7383ea |
children | e28233f37f8c |
files | src/video/directfb/SDL_DirectFB_video.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {