Skip to content

Commit

Permalink
Backed out changeset 4a45d1a30d25
Browse files Browse the repository at this point in the history
kmsdrm: Fake KMSDRM_SetDisplayMode() is needed for some programs after all.
  • Loading branch information
vanfanel committed Sep 11, 2020
1 parent 7b67654 commit 01b0cf1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -764,6 +764,7 @@ 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;
Expand Down Expand Up @@ -1549,6 +1550,19 @@ 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)
{
Expand Down

0 comments on commit 01b0cf1

Please sign in to comment.