[OSX] Cleanup video driver. #8652
Motivation / Problem / D
The OSX video driver is quite messy and littered with remnants of the old subdriver architecture. As only one subdriver is left, most of it can be cleaned up.
There are also a lot of cargo-culted things that make it quite different from the other drivers and/or are simply useless for us.
This PR tries to clean up the most egregious things and switches to using newer APIs where useful.
Mouse tracking changed to newer APIs. Also, using a layer-backed view improves draw performance.
Cocoa OSX design is very different from e.g. Win32 or SDL, so the video driver is still quite different from the other drivers.
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.
The text was updated successfully, but these errors were encountered:
…zes. We never change the real screen resolution on OSX. As such, offering a list of resolutions is pointless. Instead of that, offer the user a list of commonly used window sizes up to the current screen size.
This allows the drawing backend code to be independent of any event or command handling.