Re: World of warcraft HW mouse patch.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jorl17 wrote:
> 
> ronkkrop wrote:
> > Seems like i fixed my own problem.  Thanks anyways guys.
> 
> 
> I am curious, how exactly did you fix it?


Well as it turned out, there was nothing wrong with that portion of code.  There is an update function that's being called every time the mouse moves and is changing the cursor back.  This patch is obviously based on somebody else's work and was later patched (poorly, apparently) to work with later versions of wine.



A copy/paste from my post  in the "[WoW with wine] OpenGL hw cursor PATCH" thread on ubuntuforums.org:


ronkkrop-ubuntuforums.org wrote:
> 
> 
> I have managed to fix this problem myself.  If any of you are wanting the same functionality as what i mentioned above, navigate to your mouse.c find the function update_mouse_state, and then make the changes below...
> 
> 
> Code:
> static void update_mouse_state( HWND hwnd, Window window, int x, int y, unsigned int state, POINT *pt )
> {
>     struct x11drv_thread_data *data = x11drv_thread_data();
>     char *hwgl;
> 
>     get_coords( hwnd, window, x, y, pt );
>     hwgl = getenv("WINE_CURSOR");
> 
>     /* update the cursor */
>     
>     if (hwgl == NULL){
>       if (data->cursor_window != window)
>       {
>         data->cursor_window = window;
>         wine_tsx11_lock();
>         if (data->cursor) XDefineCursor( data->display, window, data->cursor );
>         wine_tsx11_unlock();
>       }
>     }
>     
> 
> 
> 







[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux