HACK fix for Issue #17: Thousands of Colors not working on OSX

This commit is contained in:
David Ludwig 2017-08-14 14:08:30 -04:00
parent 53cadd7fd0
commit 80a30aeca1
1 changed files with 9 additions and 2 deletions

View File

@ -22,6 +22,10 @@
#include "video.h"
#include "video_blit.h"
#if USE_SDL_VIDEO
#include <SDL.h>
#endif
#include <stdio.h>
#include <stdlib.h>
@ -504,11 +508,14 @@ bool Screen_blitter_init(VisualFormat const & visual_format, bool native_byte_or
// Windowed 1-bit mode uses a 1-bit X image, so there's no need for special blitting routines
Screen_blit = Blit_Copy_Raw;
/* // dludwig@pobox.com, TODO: This works on OSX (64-bit, at least), but not Linux (32-bit?). Why?
#if __MACOSX__
// dludwig@pobox.com, HACK: This works on OSX (64-bit, at least), but not Linux (32-bit?). Why?
// To note, __MACOSX__ is an SDL-declared macro (for platform identification at compile time).
} else if (mac_depth == 16) {
Screen_blit = Blit_Copy_Raw;
*/
#endif
} else {