author | Sam Lantinga <slouken@libsdl.org> |
Mon, 08 May 2006 04:19:03 +0000 | |
changeset 1777 | 402d5ff1cf88 |
parent 1776 | ed39aa7383ea |
child 1778 | e28233f37f8c |
--- 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) {