fix build

This commit is contained in:
Ozkan Sezer 2022-04-27 10:03:32 +03:00
parent 05bd225a80
commit 12f15aaa74
1 changed files with 1 additions and 1 deletions

View File

@ -676,13 +676,13 @@ int
X11_SetDisplayMode(_THIS, SDL_VideoDisplay * sdl_display, SDL_DisplayMode * mode)
{
SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
SDL_DisplayData *data = (SDL_DisplayData *) sdl_display->driverdata;
viddata->last_mode_change_deadline = SDL_GetTicks() + (PENDING_FOCUS_TIME * 2);
#if SDL_VIDEO_DRIVER_X11_XRANDR
if (data->use_xrandr) {
Display *display = viddata->display;
SDL_DisplayData *data = (SDL_DisplayData *) sdl_display->driverdata;
SDL_DisplayModeData *modedata = (SDL_DisplayModeData *)mode->driverdata;
int mm_width, mm_height;
XRRScreenResources *res;