src/video/x11/SDL_x11modes.c
changeset 6560 3c48e9d0ce2e
parent 6559 1fc5f5116bd0
child 6564 fa0c355cbcdd
equal deleted inserted replaced
6559:1fc5f5116bd0 6560:3c48e9d0ce2e
   272                 mode->h = info->height;
   272                 mode->h = info->height;
   273             }
   273             }
   274             mode->refresh_rate = CalculateXRandRRefreshRate(info);
   274             mode->refresh_rate = CalculateXRandRRefreshRate(info);
   275             ((SDL_DisplayModeData*)mode->driverdata)->xrandr_mode = modeID;
   275             ((SDL_DisplayModeData*)mode->driverdata)->xrandr_mode = modeID;
   276 #ifdef X11MODES_DEBUG
   276 #ifdef X11MODES_DEBUG
   277             printf("XRandR mode %d: %dx%d@%dHz\n", modeID, mode->w, mode->h, mode->refresh_rate);
   277             printf("XRandR mode %d: %dx%d@%dHz\n", (int) modeID, mode->w, mode->h, mode->refresh_rate);
   278 #endif
   278 #endif
   279             return SDL_TRUE;
   279             return SDL_TRUE;
   280         }
   280         }
   281     }
   281     }
   282     return SDL_FALSE;
   282     return SDL_FALSE;