src/video/x11/SDL_x11modes.c
changeset 6550 191f00a080ba
parent 6549 db16b819e1d1
child 6551 b0679a0d5751
equal deleted inserted replaced
6549:db16b819e1d1 6550:191f00a080ba
   509             XRRCrtcInfo *crtc;
   509             XRRCrtcInfo *crtc;
   510             int output;
   510             int output;
   511 
   511 
   512             for (output = 0; output < res->noutput; output++) {
   512             for (output = 0; output < res->noutput; output++) {
   513                 output_info = XRRGetOutputInfo(data->display, res, res->outputs[output]);
   513                 output_info = XRRGetOutputInfo(data->display, res, res->outputs[output]);
   514                 if (!output_info || output_info->connection == RR_Disconnected) {
   514                 if (!output_info || !output_info->crtc ||
       
   515                     output_info->connection == RR_Disconnected) {
   515                     XRRFreeOutputInfo(output_info);
   516                     XRRFreeOutputInfo(output_info);
   516                     continue;
   517                     continue;
   517                 }
   518                 }
   518 
   519 
   519                 /* Is this the output that corresponds to the current screen?
   520                 /* Is this the output that corresponds to the current screen?