src/video/SDL_video.c
changeset 7439 f52afd324ec7
parent 7429 ff7edbf76a73
child 7440 9817477202d1
equal deleted inserted replaced
7438:97c35b3811d1 7439:f52afd324ec7
   665 
   665 
   666     /* Make sure we don't already have the mode in the list */
   666     /* Make sure we don't already have the mode in the list */
   667     modes = display->display_modes;
   667     modes = display->display_modes;
   668     nmodes = display->num_display_modes;
   668     nmodes = display->num_display_modes;
   669     for (i = nmodes; i--;) {
   669     for (i = nmodes; i--;) {
   670         if (SDL_memcmp(mode, &modes[i], sizeof(*mode)) == 0) {
   670         if (cmpmodes(mode, &modes[i]) == 0) {
   671             return SDL_FALSE;
   671             return SDL_FALSE;
   672         }
   672         }
   673     }
   673     }
   674 
   674 
   675     /* Go ahead and add the new mode */
   675     /* Go ahead and add the new mode */