From 0229091f370edf070bfb71a703a724f11b2702b0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 27 Jan 2023 14:24:06 -0800 Subject: [PATCH] Fixed build --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index 55009f374..e31ec8786 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -502,8 +502,8 @@ static drmModeModeInfo *KMSDRM_GetClosestDisplayMode(SDL_VideoDisplay *display, drmModeModeInfo *drm_mode; SDL_zero(target); - target.pixel_w = (int)width; - target.pixel_h = (int)height; + target.screen_w = (int)width; + target.screen_h = (int)height; target.refresh_rate = (int)refresh_rate; if (!SDL_GetClosestDisplayMode(SDL_atoi(display->name), &target, &closest)) { @@ -1298,8 +1298,8 @@ void KMSDRM_GetDisplayModes(_THIS, SDL_VideoDisplay *display) } SDL_zero(mode); - mode.w = conn->modes[i].hdisplay; - mode.h = conn->modes[i].vdisplay; + mode.pixel_w = conn->modes[i].hdisplay; + mode.pixel_h = conn->modes[i].vdisplay; mode.refresh_rate = CalculateRefreshRate(&conn->modes[i]); mode.format = SDL_PIXELFORMAT_ARGB8888; mode.driverdata = modedata;