summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c22eb3c..38a99d0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,11 +27,22 @@
* another page so we can begin rendering another frame before vsync. With
* just two pages we end up twiddling thumbs until the vsync arrives.
*/
+
+#ifndef DEFAULT_VIDEO
#ifdef HAVE_SDL
#define DEFAULT_VIDEO "sdl"
-#else
+#endif
+#endif
+
+#ifndef DEFAULT_VIDEO
+#ifdef HAVE_DRM
#define DEFAULT_VIDEO "drm"
#endif
+#endif
+
+#ifndef DEFAULT_VIDEO
+#define DEFAULT_VIDEO "mem"
+#endif
extern til_fb_ops_t drm_fb_ops;
extern til_fb_ops_t mem_fb_ops;
© All Rights Reserved