mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 04:36:42 -05:00
Eliminate duplicate video modes
This commit is contained in:
@@ -191,6 +191,9 @@ static DFBEnumerationResult EnumModesCallback (int width,
|
||||
|
||||
HIDDEN->nummodes++;
|
||||
|
||||
if (enumlist && enumlist->r.w == width && enumlist->r.h == height)
|
||||
return DFENUM_OK;
|
||||
|
||||
enumrect = SDL_calloc(1, sizeof(struct DirectFBEnumRect));
|
||||
if (!enumrect)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user