From f2a277414f9c22e199cb126a3f2fc27e89ebe5bd Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 24 Feb 2023 12:14:32 +0100 Subject: [PATCH] raspberry: SDL_DisplayMode's w/h members have been renamed to screen_w/screen_h Found by running the coccinelle script on SDL's source tree. --- src/video/raspberry/SDL_rpivideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/raspberry/SDL_rpivideo.c b/src/video/raspberry/SDL_rpivideo.c index fe3b0cfb5..6c4af7d09 100644 --- a/src/video/raspberry/SDL_rpivideo.c +++ b/src/video/raspberry/SDL_rpivideo.c @@ -245,8 +245,8 @@ int RPI_CreateWindow(_THIS, SDL_Window *window) displaydata = display->driverdata; /* Windows have one size for now */ - window->w = display->desktop_mode.w; - window->h = display->desktop_mode.h; + window->w = display->desktop_mode.screen_w; + window->h = display->desktop_mode.screen_h; /* OpenGL ES is the law here, buddy */ window->flags |= SDL_WINDOW_OPENGL;