summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-05 21:26:51 +0000
committerrubidium <rubidium@openttd.org>2009-09-05 21:26:51 +0000
commitbc5241600a33f7271a839105c4752ad24f202c1c (patch)
tree57ec42b3a8b93498e79f3fdc26ca3e10febdaee7 /src/video
parent0be5e5935560de419283540ea6280acdff3dea9c (diff)
downloadopenttd-bc5241600a33f7271a839105c4752ad24f202c1c.tar.xz
(svn r17428) -Codechange: add a function to get the name of a driver
Diffstat (limited to 'src/video')
-rw-r--r--src/video/allegro_v.h1
-rw-r--r--src/video/dedicated_v.h1
-rw-r--r--src/video/null_v.h1
-rw-r--r--src/video/sdl_v.h1
-rw-r--r--src/video/win32_v.h1
5 files changed, 5 insertions, 0 deletions
diff --git a/src/video/allegro_v.h b/src/video/allegro_v.h
index d9c3a985f..2cac11dd8 100644
--- a/src/video/allegro_v.h
+++ b/src/video/allegro_v.h
@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
+ /* virtual */ const char *GetName() const { return "allegro"; }
};
class FVideoDriver_Allegro: public VideoDriverFactory<FVideoDriver_Allegro> {
diff --git a/src/video/dedicated_v.h b/src/video/dedicated_v.h
index 1f0d2cafa..7fd0c5391 100644
--- a/src/video/dedicated_v.h
+++ b/src/video/dedicated_v.h
@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
+ /* virtual */ const char *GetName() const { return "dedicated"; }
};
class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
diff --git a/src/video/null_v.h b/src/video/null_v.h
index 3a8eb7298..f9329d2d6 100644
--- a/src/video/null_v.h
+++ b/src/video/null_v.h
@@ -30,6 +30,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
+ /* virtual */ const char *GetName() const { return "null"; }
};
class FVideoDriver_Null: public VideoDriverFactory<FVideoDriver_Null> {
diff --git a/src/video/sdl_v.h b/src/video/sdl_v.h
index 3fb6526c9..4d2faf9fe 100644
--- a/src/video/sdl_v.h
+++ b/src/video/sdl_v.h
@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
+ /* virtual */ const char *GetName() const { return "sdl"; }
};
class FVideoDriver_SDL: public VideoDriverFactory<FVideoDriver_SDL> {
diff --git a/src/video/win32_v.h b/src/video/win32_v.h
index b83051fa5..efd82671c 100644
--- a/src/video/win32_v.h
+++ b/src/video/win32_v.h
@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
+ /* virtual */ const char *GetName() const { return "win32"; }
};
class FVideoDriver_Win32: public VideoDriverFactory<FVideoDriver_Win32> {