mirror of https://github.com/PCSX2/pcsx2.git
Fix mouse position calculation
This commit is contained in:
parent
9f7fd13875
commit
c84ca53b4d
|
@ -478,7 +478,7 @@ void CtrlRegisterList::mouseEvent(wxMouseEvent& evt)
|
|||
wxClientDC dc(this);
|
||||
wxPoint pos = evt.GetPosition();
|
||||
int x = dc.DeviceToLogicalX(pos.x) + xOffset;
|
||||
int y = dc.DeviceToLogicalY(pos.y) + yOffset;
|
||||
int y = dc.DeviceToLogicalY(pos.y) + yOffset * rowHeight;
|
||||
|
||||
if (evt.GetEventType() == wxEVT_RIGHT_UP)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue