mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +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)
|
static Blitter *SelectBlitter(const char *name)
|
||||||
{
|
{
|
||||||
|
#if defined(DEDICATED)
|
||||||
|
const char *default_blitter = "null";
|
||||||
|
#else
|
||||||
const char *default_blitter = "8bpp-optimized";
|
const char *default_blitter = "8bpp-optimized";
|
||||||
|
|
||||||
#if defined(WITH_COCOA)
|
#if defined(WITH_COCOA)
|
||||||
@ -90,6 +93,7 @@ public:
|
|||||||
default_blitter = "32bpp-anim";
|
default_blitter = "32bpp-anim";
|
||||||
}
|
}
|
||||||
#endif /* defined(WITH_COCOA) */
|
#endif /* defined(WITH_COCOA) */
|
||||||
|
#endif /* defined(DEDICATED) */
|
||||||
if (GetBlitters().size() == 0) return NULL;
|
if (GetBlitters().size() == 0) return NULL;
|
||||||
const char *bname = (StrEmpty(name)) ? default_blitter : name;
|
const char *bname = (StrEmpty(name)) ? default_blitter : name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user