|
@@ -471,7 +471,7 @@ KMSDRM_WaitPageflip(_THIS, SDL_WindowData *windata) {
|
|
|
available on the DRM connector of the display.
|
|
|
We use the SDL mode list (which we filled in KMSDRM_GetDisplayModes)
|
|
|
because it's ordered, while the list on the connector is mostly random.*/
|
|
|
-drmModeModeInfo*
|
|
|
+static drmModeModeInfo*
|
|
|
KMSDRM_GetClosestDisplayMode(SDL_VideoDisplay * display,
|
|
|
uint32_t width, uint32_t height, uint32_t refresh_rate){
|
|
|
|
|
@@ -502,7 +502,8 @@ uint32_t width, uint32_t height, uint32_t refresh_rate){
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
/* Deinitializes the driverdata of the SDL Displays in the SDL display list. */
|
|
|
-void KMSDRM_DeinitDisplays (_THIS) {
|
|
|
+static void
|
|
|
+KMSDRM_DeinitDisplays (_THIS) {
|
|
|
|
|
|
SDL_DisplayData *dispdata;
|
|
|
int num_displays, i;
|
|
@@ -531,7 +532,8 @@ void KMSDRM_DeinitDisplays (_THIS) {
|
|
|
|
|
|
/* Gets a DRM connector, builds an SDL_Display with it, and adds it to the
|
|
|
list of SDL Displays in _this->displays[] */
|
|
|
-void KMSDRM_AddDisplay (_THIS, drmModeConnector *connector, drmModeRes *resources) {
|
|
|
+static void
|
|
|
+KMSDRM_AddDisplay (_THIS, drmModeConnector *connector, drmModeRes *resources) {
|
|
|
|
|
|
SDL_VideoData *viddata = ((SDL_VideoData *)_this->driverdata);
|
|
|
SDL_DisplayData *dispdata = NULL;
|
|
@@ -719,7 +721,8 @@ cleanup:
|
|
|
closed when we get to the end of this function.
|
|
|
This is to be called early, in VideoInit(), because it gets us
|
|
|
the videomode information, which SDL needs immediately after VideoInit(). */
|
|
|
-int KMSDRM_InitDisplays (_THIS) {
|
|
|
+static int
|
|
|
+KMSDRM_InitDisplays (_THIS) {
|
|
|
|
|
|
SDL_VideoData *viddata = ((SDL_VideoData *)_this->driverdata);
|
|
|
drmModeRes *resources = NULL;
|
|
@@ -813,7 +816,7 @@ cleanup:
|
|
|
These things are incompatible with Vulkan, which accesses the same resources
|
|
|
internally so they must be free when trying to build a Vulkan surface.
|
|
|
*/
|
|
|
-int
|
|
|
+static int
|
|
|
KMSDRM_GBMInit (_THIS, SDL_DisplayData *dispdata)
|
|
|
{
|
|
|
SDL_VideoData *viddata = (SDL_VideoData *)_this->driverdata;
|
|
@@ -837,7 +840,7 @@ KMSDRM_GBMInit (_THIS, SDL_DisplayData *dispdata)
|
|
|
}
|
|
|
|
|
|
/* Deinit the Vulkan-incompatible KMSDRM stuff. */
|
|
|
-void
|
|
|
+static void
|
|
|
KMSDRM_GBMDeinit (_THIS, SDL_DisplayData *dispdata)
|
|
|
{
|
|
|
SDL_VideoData *viddata = ((SDL_VideoData *)_this->driverdata);
|
|
@@ -858,7 +861,7 @@ KMSDRM_GBMDeinit (_THIS, SDL_DisplayData *dispdata)
|
|
|
viddata->gbm_init = SDL_FALSE;
|
|
|
}
|
|
|
|
|
|
-void
|
|
|
+static void
|
|
|
KMSDRM_DestroySurfaces(_THIS, SDL_Window *window)
|
|
|
{
|
|
|
SDL_VideoData *viddata = ((SDL_VideoData *)_this->driverdata);
|