summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-08 14:30:29 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-08 14:30:29 +0000
commit384e6c764d3785e7229eabc86ec585c9a3a6cbdc (patch)
treea46ebcc9360c541d681436204a4e6586e63151ea /src/blitter
parent2ef54545c72fb7e0052a55882067885a1a610bc8 (diff)
downloadopenttd-384e6c764d3785e7229eabc86ec585c9a3a6cbdc.tar.xz
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/factory.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index 7ac8dbde5..4f7a4b108 100644
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -79,6 +79,9 @@ public:
*/
static Blitter *SelectBlitter(const char *name)
{
+#if defined(DEDICATED)
+ const char *default_blitter = "null";
+#else
const char *default_blitter = "8bpp-optimized";
#if defined(WITH_COCOA)
@@ -90,6 +93,7 @@ public:
default_blitter = "32bpp-anim";
}
#endif /* defined(WITH_COCOA) */
+#endif /* defined(DEDICATED) */
if (GetBlitters().size() == 0) return NULL;
const char *bname = (StrEmpty(name)) ? default_blitter : name;