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:
parent
0231906d6d
commit
57b9ad0d95
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue