Lines Matching refs:refresh_rate
436 } else if (a->refresh_rate != b->refresh_rate) { in cmpmodes()
437 return b->refresh_rate - a->refresh_rate; in cmpmodes()
898 if (mode->refresh_rate) { in SDL_GetClosestDisplayModeForDisplay()
899 target_refresh_rate = mode->refresh_rate; in SDL_GetClosestDisplayModeForDisplay()
901 target_refresh_rate = display->desktop_mode.refresh_rate; in SDL_GetClosestDisplayModeForDisplay()
937 if (current->refresh_rate != match->refresh_rate) { in SDL_GetClosestDisplayModeForDisplay()
939 if (current->refresh_rate >= target_refresh_rate) { in SDL_GetClosestDisplayModeForDisplay()
957 if (match->refresh_rate) { in SDL_GetClosestDisplayModeForDisplay()
958 closest->refresh_rate = match->refresh_rate; in SDL_GetClosestDisplayModeForDisplay()
960 closest->refresh_rate = mode->refresh_rate; in SDL_GetClosestDisplayModeForDisplay()
1014 if (!display_mode.refresh_rate) { in SDL_SetDisplayModeForDisplay()
1015 display_mode.refresh_rate = display->current_mode.refresh_rate; in SDL_SetDisplayModeForDisplay()