Skip to content

Commit

Permalink
kmsdrm: don't fool SDL into thinking that changing the physical video…
Browse files Browse the repository at this point in the history
…mode is done.
  • Loading branch information
vanfanel committed Sep 11, 2020
1 parent a6d182d commit 7b67654
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -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;
Expand Down Expand Up @@ -1550,19 +1549,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)
{
Expand Down

0 comments on commit 7b67654

Please sign in to comment.