mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-02 13:41:37 +00:00
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
|
@ -1638,6 +1638,12 @@ bool VideoInit(bool classic)
|
|||
}
|
||||
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
|
||||
char fb_name[20];
|
||||
|
|
Loading…
Reference in New Issue
Block a user