martinfabian / MFXlist

https://forum.cockos.com/showthread.php?t=248411
5 stars 1 forks source link

TCP height is calculated the wrong way on Mac... #17

Closed martinfabian closed 3 years ago

martinfabian commented 3 years ago

Mac apparently considers y-coords to have their origin at the bottom, so the computation of the TCP rectangle comes out negative in getClientBounds(). For Mac the height should be calculated as top - bottom, rather than bottom - topas on Windows and Linux.

So, we need to check if we are on Mac or not, and if so, swap the subtraction.

martinfabian commented 3 years ago

Fixed by acd1ba8