mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
Stop ASSERT when 'mouse entering Apple screen area' (#464)
This commit is contained in:
parent
b1dfd57502
commit
03b4e889e5
@ -2699,8 +2699,11 @@ static void FrameSetCursorPosByMousePos(int x, int y, int dx, int dy, bool bLeav
|
||||
else // Mouse entering Apple screen area
|
||||
{
|
||||
// sprintf(szDbg, "[MOUSE_ENTERING] x=%d, y=%d\n", x, y); OutputDebugString(szDbg);
|
||||
x -= (viewportx+2-MAGICX); if (x < 0) x = 0;
|
||||
y -= (viewporty+2-MAGICY); if (y < 0) y = 0;
|
||||
if (!g_bIsFullScreen) // GH#464
|
||||
{
|
||||
x -= (viewportx+2-MAGICX); if (x < 0) x = 0;
|
||||
y -= (viewporty+2-MAGICY); if (y < 0) y = 0;
|
||||
}
|
||||
|
||||
_ASSERT(x <= g_nViewportCX);
|
||||
_ASSERT(y <= g_nViewportCY);
|
||||
|
Loading…
Reference in New Issue
Block a user