Remove 15 bit video for OS X. This mode doesn't seem to work.

This also fixes 2-bit, 4-bit, and 8-bit modes.
This commit is contained in:
Dan Sumorok 2013-05-05 14:11:09 -04:00
parent 0231906d6d
commit 57b9ad0d95
1 changed files with 6 additions and 0 deletions

View File

@ -1637,6 +1637,12 @@ bool VideoInit(bool classic)
return false;
}
std::sort(avail_depths, avail_depths + num_depths);
#ifdef __APPLE__
// 15-bit color does not seem to work on OS X
int *last = std::remove(avail_depths, avail_depths + num_depths, 15);
num_depths = ( (size_t)last - (size_t)avail_depths ) / sizeof(int);
#endif
#ifdef ENABLE_FBDEV_DGA
// Frame buffer name