From 8b81cdd2a602d63b6b7f595383cedecf54046650 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 7 Jul 2007 20:31:23 +0000 Subject: (svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first --- src/video/sdl_v.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/video/sdl_v.h') diff --git a/src/video/sdl_v.h b/src/video/sdl_v.h index ff494919d..fdfded49c 100644 --- a/src/video/sdl_v.h +++ b/src/video/sdl_v.h @@ -7,8 +7,6 @@ class VideoDriver_SDL: public VideoDriver { public: - /* virtual */ bool CanProbe() { return true; } - /* virtual */ const char *Start(const char * const *param); /* virtual */ void Stop(); @@ -24,6 +22,7 @@ public: class FVideoDriver_SDL: public VideoDriverFactory { public: + static const int priority = 5; /* virtual */ const char *GetName() { return "sdl"; } /* virtual */ const char *GetDescription() { return "SDL Video Driver"; } /* virtual */ Driver *CreateInstance() { return new VideoDriver_SDL(); } -- cgit v1.2.3-54-g00ecf