Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 332 → Rev 333

/polymer/eduke32/source/startwin.game.c
57,8 → 57,8
mode = checkvideomode(&settings.xdim, &settings.ydim, settings.bpp, settings.fullscreen, 1);
if (mode < 0) {
int cd[] = { 32, 24, 16, 15, 8, 0 };
for (i=0; cd[i]; ) { if (cd[i] >= settings.bpp) i++; else break; }
for ( ; cd[i]; i++) {
for (i=0; cd[i];) { if (cd[i] >= settings.bpp) i++; else break; }
for (; cd[i]; i++) {
mode = checkvideomode(&settings.xdim, &settings.ydim, cd[i], settings.fullscreen, 1);
if (mode < 0) continue;
settings.bpp = cd[i];