ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/video_x.cpp
(Generate patch)

Comparing SheepShaver/src/Unix/video_x.cpp (file contents):
Revision 1.24 by gbeauche, 2004-06-02T15:41:34Z vs.
Revision 1.25 by gbeauche, 2004-06-05T06:28:21Z

# Line 1161 | Line 1161 | bool VideoInit(void)
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines