--- ../Mk10/xgame.c Fri Oct 30 13:44:29 1998 +++ xgame.c Thu Nov 5 17:01:13 1998 @@ -652,8 +652,10 @@ case MotionNotify: /*** store scaled position ***/ - win->mousex = (win->event.xmotion.x*XgameScaleFixDiv) / win->xmul; - win->mousey = (win->event.xmotion.y*XgameScaleFixDiv) / win->ymul; + win->mousex = ( (win->event.xmotion.x - win->xoffset) + * XgameScaleFixDiv) / win->xmul; + win->mousey = ( (win->event.xmotion.y-win->yoffset) + * XgameScaleFixDiv) / win->ymul; /* printf("X%d Y%d\n",win->mousex,win->mousey);*/ break;