comparison 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
comparison
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
188 { 188 {
189 SDL_VideoDevice *this = (SDL_VideoDevice *)data; 189 SDL_VideoDevice *this = (SDL_VideoDevice *)data;
190 struct DirectFBEnumRect *enumrect; 190 struct DirectFBEnumRect *enumrect;
191 191
192 HIDDEN->nummodes++; 192 HIDDEN->nummodes++;
193
194 if (enumlist && enumlist->r.w == width && enumlist->r.h == height)
195 return DFENUM_OK;
193 196
194 enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect)); 197 enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect));
195 if (!enumrect) 198 if (!enumrect)
196 { 199 {
197 SDL_OutOfMemory(); 200 SDL_OutOfMemory();