Skip to content

Commit

Permalink
- removed obsolete code from Cocoa backend
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jun 23, 2018
1 parent 82d7e59 commit 573758b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/posix/cocoa/i_input.mm
Expand Up @@ -487,11 +487,6 @@ void NSEventToGameMousePosition(NSEvent* inEvent, event_t* outEvent)
outEvent->data1 = static_cast<int16_t>( viewPos.x);
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);
}

Expand Down

0 comments on commit 573758b

Please sign in to comment.