mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 11:29:10 +00:00
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user