now allowing a screen to be its own neighbor to allow wrapping.

also no longer warping mouse to 0,0 when setting server screen
info.  that was causing the mouse to jump if the server screen
had itself as its left or top neighbor (directly or indirectly)
once a screen could be its own neighbor.
This commit is contained in:
crs
2002-06-10 10:08:36 +00:00
parent 2ea3d66112
commit 172fc7e5b3
3 changed files with 23 additions and 5 deletions

View File

@@ -111,7 +111,9 @@ void CMSWindowsPrimaryScreen::open(CServer* server)
// send screen info
SInt32 w, h;
getScreenSize(&w, &h);
m_server->setInfo(w, h, getJumpZoneSize(), 0, 0);
POINT pos;
GetCursorPos(&pos);
m_server->setInfo(w, h, getJumpZoneSize(), pos.x, pos.y);
// compute center pixel of screen
m_xCenter = w >> 1;