[Mac] Fix screen coordinate calculation

The screen calculation formula has to be tweaked
when the widget is marked as flipped.
All mac tests are green now.