mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
This commit is contained in:
parent
57cff4bca8
commit
85c0d42616
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user