(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.

This commit is contained in:
peter1138 2009-01-08 14:30:29 +00:00
parent 57cff4bca8
commit 85c0d42616
1 changed files with 4 additions and 0 deletions

View File

@ -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;