diff src/video/directfb/SDL_DirectFB_video.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents e20dcef5647c
children 782fd950bd46 c121d94672cb e1e525d96838
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_video.c	Mon May 01 06:58:33 2006 +0000
+++ b/src/video/directfb/SDL_DirectFB_video.c	Wed May 17 08:18:28 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)
     {