mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- removed obsolete code from Cocoa backend
This commit is contained in:
parent
82d7e5970f
commit
573758bc55
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue