- removed obsolete code from Cocoa backend

This commit is contained in:
alexey.lysiuk 2018-06-23 12:44:48 +03:00
parent 82d7e5970f
commit 573758bc55

View file

@ -487,11 +487,6 @@ void NSEventToGameMousePosition(NSEvent* inEvent, event_t* outEvent)
outEvent->data1 = static_cast<int16_t>( viewPos.x); outEvent->data1 = static_cast<int16_t>( viewPos.x);
outEvent->data2 = static_cast<int16_t>(frameHeight - viewPos.y); outEvent->data2 = static_cast<int16_t>(frameHeight - viewPos.y);
// Compensate letterbox adjustment done by cross-platform code
// More elegant solution is a bit problematic due to HiDPI/Retina support
// What does this do? Add 0?
//outEvent->data2 += (screen->GetTrueHeight() - screen->ClientHeight()) / 2;
screen->ScaleCoordsFromWindow(outEvent->data1, outEvent->data2); screen->ScaleCoordsFromWindow(outEvent->data1, outEvent->data2);
} }