mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-28 17:30:02 +00:00
VidHD: fix debugger mouse-click hit-test issues. (#1106)
This commit is contained in:
parent
a41be14015
commit
a1f6ebe1c9
@ -339,7 +339,8 @@ void DebuggerMouseClick(int x, int y)
|
||||
|
||||
// do picking
|
||||
|
||||
const int nOffsetX = win32Frame.IsFullScreen() ? win32Frame.GetFullScreenOffsetX() : win32Frame.Get3DBorderWidth();
|
||||
// NB. Full-screen + VidHD isn't centred yet
|
||||
const int nOffsetX = win32Frame.IsFullScreen() ? win32Frame.GetFullScreenOffsetX() : win32Frame.Get3DBorderWidth() + GetVideo().GetFrameBufferCentringOffsetX() * win32Frame.GetViewportScale();
|
||||
const int nOffsetY = win32Frame.IsFullScreen() ? win32Frame.GetFullScreenOffsetY() : win32Frame.Get3DBorderHeight();
|
||||
|
||||
const int nOffsetInScreenX = x - nOffsetX;
|
||||
|
Loading…
Reference in New Issue
Block a user