mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-05 14:32:15 +00:00
When no fullscreen mode requested nor available, always try to pick the
first windowed mode matching current depth.
This commit is contained in:
parent
a9c38c3598
commit
d5f6d59ad0
@ -1161,6 +1161,15 @@ bool VideoInit(void)
|
||||
if (apple_id != -1)
|
||||
cur_mode = find_mode(default_mode, apple_id, DIS_SCREEN);
|
||||
}
|
||||
if (cur_mode == -1) {
|
||||
// pick up first windowed mode available
|
||||
for (VideoInfo *p = VModes; p->viType != DIS_INVALID; p++) {
|
||||
if (p->viType == DIS_WINDOW && p->viAppleMode == default_mode) {
|
||||
cur_mode = p - VModes;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cur_mode == -1)
|
||||
cur_mode = find_mode(default_mode, APPLE_W_640x480, DIS_WINDOW);
|
||||
assert(cur_mode != -1);
|
||||
|
Loading…
Reference in New Issue
Block a user