summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2008-06-19 17:54:23 +0000
committerbjarni <bjarni@openttd.org>2008-06-19 17:54:23 +0000
commit7fa33c28a94fc34f509ed47ca0882f0f1f490f6e (patch)
tree35a032ffd287a82f0fabe43580807662d35ae19d /src
parent5b615eae3a8922b373789258abd49a74e708b1a9 (diff)
downloadopenttd-7fa33c28a94fc34f509ed47ca0882f0f1f490f6e.tar.xz
(svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
Diffstat (limited to 'src')
-rw-r--r--src/blitter/factory.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index f9dd9c463..928b78547 100644
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -70,6 +70,13 @@ public:
{
const char *default_blitter = "8bpp-optimized";
+#if defined(__APPLE__)
+ /* MacOS X 10.5 removed 8bpp fullscreen support.
+ * Because of this we will pick 32bpp by default */
+ if (MacOSVersionIsAtLeast(10, 5, 0)) {
+ default_blitter = "32bpp-anim";
+ }
+#endif /* defined(__APPLE__) */
if (GetBlitters().size() == 0) return NULL;
const char *bname = (StrEmpty(name)) ? default_blitter : name;