Commit 7b67654872411e1b2615e7c6bed9664a975b4b51

Manuel Alfayate Corchete 2020-09-12T00:16:08

kmsdrm: don't fool SDL into thinking that changing the physical videomode is done.

diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 0fe093b..a95f0d8 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -764,7 +764,6 @@ KMSDRM_CreateDevice(int devindex)
     device->VideoInit = KMSDRM_VideoInit;
     device->VideoQuit = KMSDRM_VideoQuit;
     device->GetDisplayModes = KMSDRM_GetDisplayModes;
-    device->SetDisplayMode = KMSDRM_SetDisplayMode;
     device->CreateSDLWindow = KMSDRM_CreateWindow;
     device->CreateSDLWindowFrom = KMSDRM_CreateWindowFrom;
     device->SetWindowTitle = KMSDRM_SetWindowTitle;
@@ -1551,19 +1550,6 @@ KMSDRM_GetDisplayModes(_THIS, SDL_VideoDisplay * display)
 }
 
 int
-KMSDRM_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
-{
-    /************************************************************************/
-    /* DO NOT add dynamic videomode changes. It makes NO SENSE, since the   */
-    /* PRIMARY PLANE and the CRTC can be used to scale image, so any window */
-    /* will appear fullscren with AR correction with NO extra video memory  */
-    /* bandwidth usage.                                                     */
-    /************************************************************************/    
-
-    return 0;
-}
-
-int
 KMSDRM_CreateWindow(_THIS, SDL_Window * window)
 {
     SDL_VideoData *viddata = (SDL_VideoData *)_this->driverdata;