Updated debug print with new SDL_DisplayMode fields

main
Sam Lantinga 2023-03-05 13:46:07 -08:00
parent a946a34452
commit 7905254087
1 changed files with 2 additions and 1 deletions

3
src/video/x11/SDL_x11modes.c Normal file → Executable file
View File

@ -226,7 +226,8 @@ static SDL_bool SetXRandRModeInfo(Display *display, XRRScreenResources *res, RRC
mode->refresh_rate = CalculateXRandRRefreshRate(info); mode->refresh_rate = CalculateXRandRRefreshRate(info);
((SDL_DisplayModeData *)mode->driverdata)->xrandr_mode = modeID; ((SDL_DisplayModeData *)mode->driverdata)->xrandr_mode = modeID;
#ifdef X11MODES_DEBUG #ifdef X11MODES_DEBUG
printf("XRandR mode %d: %dx%d@%dHz\n", (int)modeID, mode->w, mode->h, mode->refresh_rate); printf("XRandR mode %d: %dx%d@%dHz\n", (int)modeID,
mode->screen_w, mode->screen_h, mode->refresh_rate);
#endif #endif
return SDL_TRUE; return SDL_TRUE;
} }