mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 17:50:13 +01:00
Fix mouse position calculation
This commit is contained in:
1 parent
a3dea9b243
commit
c6b60d5376
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user