Commit f5afb7d11ae06a0118c6ec4b06715c27e0aef4a9

Cameron Gutman 2022-10-13T18:44:15

directfb: Fix return type of DirectFB_RenderPresent()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c
index 257e950..bcb2600 100644
--- a/src/video/directfb/SDL_DirectFB_render.c
+++ b/src/video/directfb/SDL_DirectFB_render.c
@@ -1025,7 +1025,7 @@ DirectFB_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *
 }
 
 
-static void
+static int
 DirectFB_RenderPresent(SDL_Renderer * renderer)
 {
     DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata;
@@ -1056,6 +1056,7 @@ DirectFB_RenderPresent(SDL_Renderer * renderer)
     /* Send the data to the display */
     SDL_DFB_CHECK(windata->window_surface->Flip(windata->window_surface, NULL,
                                                 data->flipflags));
+    return 0;
 }
 
 static void