src/video/SDL_video.c
changeset 7441 468877c2135a
parent 7440 9817477202d1
child 7452 fae80e5464e2
     1.1 --- a/src/video/SDL_video.c	Sat Jul 13 21:50:40 2013 -0400
     1.2 +++ b/src/video/SDL_video.c	Sat Jul 13 21:56:31 2013 -0400
     1.3 @@ -663,7 +663,7 @@
     1.4      /* Make sure we don't already have the mode in the list */
     1.5      modes = display->display_modes;
     1.6      nmodes = display->num_display_modes;
     1.7 -    for (i = nmodes; i--;) {
     1.8 +    for (i = 0; i < nmodes; ++i) {
     1.9          if (cmpmodes(mode, &modes[i]) == 0) {
    1.10              return SDL_FALSE;
    1.11          }
    1.12 @@ -2253,7 +2253,7 @@
    1.13      }
    1.14      _this->VideoQuit(_this);
    1.15  
    1.16 -    for (i = _this->num_displays; i--;) {
    1.17 +    for (i = 0; i < _this->num_displays; ++i) {
    1.18          SDL_VideoDisplay *display = &_this->displays[i];
    1.19          for (j = display->num_display_modes; j--;) {
    1.20              if (display->display_modes[j].driverdata) {