Call CGGetActiveDisplayList once to avoid panic

Previously we called CGGetActiveDisplayList twice: once to get the
number of displays and then to get the displays.

We saw a panic due to no displays being returned here. As a first
attempt to fix the panic, we're reducing the amount of calls to
CGGetActiveDisplayList and just do one with the trade-off being that we
pre-allocate 32 pointers in a Vec.
03bfe3ef80Thorsten Ball committed on 1/16/2024, 11:01:54 AMparented78f70
1 file changedLine totals unavailable