This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] libgui/src/tkWarpPointer.c for cygwin


On Wed, 2 May 2001, Syd Polk wrote:

> >+ #ifdef _WIN32
> >+       int wx, wy;
> >+       Tk_GetRootCoords (tkwin, &wx, &wy);
> >+       SetCursorPos@8 (wx + x, wy + y);
> >+ #else
> >+       Window win = Tk_WindowId(tkwin);
> >+       XWarpPointer(Tk_Display(tkwin), None, win, 0, 0, 0, 0, x, y);
> >+ #endif
> >+     }
>
> The second question I have is why do you need "SetCursorPos@8"? Assuming
> you are including winuser.h, you should be able to use "SetCursorPos", and
> either a macro will fix this, or the linker will. I don't think requiring
> the "@8" or "@16" or whatever for Windows API calls is very nice.

I don't need "SetCursorPos@8": I added the header files and forgot to
rename the function in the patch I posted. The actual patch would have
contained a call to SetCursorPos only. Sorry about that.

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]