Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Changed some for-loops to be a bit more clear.

  • Loading branch information
icculus committed Jul 14, 2013
1 parent c8a6ce4 commit e32bdd3a796c508951f40511fb6b1d1269ea18aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/SDL_video.c
@@ -663,7 +663,7 @@ SDL_AddDisplayMode(SDL_VideoDisplay * display, const SDL_DisplayMode * mode)
/* Make sure we don't already have the mode in the list */
modes = display->display_modes;
nmodes = display->num_display_modes;
for (i = nmodes; i--;) {
for (i = 0; i < nmodes; ++i) {
if (cmpmodes(mode, &modes[i]) == 0) {
return SDL_FALSE;
}
@@ -2253,7 +2253,7 @@ SDL_VideoQuit(void)
}
_this->VideoQuit(_this);

for (i = _this->num_displays; i--;) {
for (i = 0; i < _this->num_displays; ++i) {
SDL_VideoDisplay *display = &_this->displays[i];
for (j = display->num_display_modes; j--;) {
if (display->display_modes[j].driverdata) {

0 comments on commit e32bdd3

Please sign in to comment.