1161 |
|
if (apple_id != -1) |
1162 |
|
cur_mode = find_mode(default_mode, apple_id, DIS_SCREEN); |
1163 |
|
} |
1164 |
+ |
if (cur_mode == -1) { |
1165 |
+ |
// pick up first windowed mode available |
1166 |
+ |
for (VideoInfo *p = VModes; p->viType != DIS_INVALID; p++) { |
1167 |
+ |
if (p->viType == DIS_WINDOW && p->viAppleMode == default_mode) { |
1168 |
+ |
cur_mode = p - VModes; |
1169 |
+ |
break; |
1170 |
+ |
} |
1171 |
+ |
} |
1172 |
+ |
} |
1173 |
|
if (cur_mode == -1) |
1174 |
|
cur_mode = find_mode(default_mode, APPLE_W_640x480, DIS_WINDOW); |
1175 |
|
assert(cur_mode != -1); |