# HG changeset patch # User bjarni # Date 1213898063 0 # Node ID c944157c30a1213745c7a08c1a980305008338fa # Parent be3a48c6a25ed789501575b7d283ac37619fc9e7 (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 diff -r be3a48c6a25e -r c944157c30a1 src/blitter/factory.hpp --- a/src/blitter/factory.hpp Thu Jun 19 13:04:41 2008 +0000 +++ b/src/blitter/factory.hpp Thu Jun 19 17:54:23 2008 +0000 @@ -70,6 +70,13 @@ { 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;