comparison src/video/bwindow/SDL_sysvideo.cc @ 2120:2c835d58faad

make indent
author Sam Lantinga <slouken@libsdl.org>
date Thu, 14 Jun 2007 13:21:29 +0000
parents 34a4d02b8db1
children e1da92da346c
comparison
equal deleted inserted replaced
2119:9341a884a4d9 2120:2c835d58faad
370 (current.timing.h_total * current.timing.v_total); 370 (current.timing.h_total * current.timing.v_total);
371 371
372 modes = SDL_modelist[((bpp + 7) / 8) - 1]; 372 modes = SDL_modelist[((bpp + 7) / 8) - 1];
373 373
374 bool exactmatch = false; 374 bool exactmatch = false;
375 for ( uint32 x = 0; modes[x]; x++ ) { 375 for (uint32 x = 0; modes[x]; x++) {
376 if (modes[x]->w == width && modes[x]->h == height) { 376 if (modes[x]->w == width && modes[x]->h == height) {
377 exactmatch = true; 377 exactmatch = true;
378 i = x; 378 i = x;
379 break; 379 break;
380 } 380 }
383 for (i = 0; modes[i] && (modes[i]->w > width) && 383 for (i = 0; modes[i] && (modes[i]->w > width) &&
384 (modes[i]->h > height); ++i) { 384 (modes[i]->h > height); ++i) {
385 /* still looking */ 385 /* still looking */
386 } 386 }
387 if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < height)) { 387 if (!modes[i] || (modes[i]->w < width) || (modes[i]->h < height)) {
388 --i; /* We went too far */ 388 /* We went too far */
389 --i;
389 } 390 }
390 } 391 }
391 width = modes[i]->w; 392 width = modes[i]->w;
392 height = modes[i]->h; 393 height = modes[i]->h;
393 bscreen.GetModeList(&dmodes, &nmodes); 394 bscreen.GetModeList(&dmodes, &nmodes);