Mouse cursor not displaying

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

 



I am trying to make a workaround for a game in wine (M1 tank platoon 2) on Linux to force the cursor to display in the game's menu but haven't had any luck. I tried to set the cursor to the default pointer with this code (xid is the X window id of the main game window):


Code:

  csr = XCreateFontCursor (g_display, XC_left_ptr);
  XDefineCursor (g_display, xid, csr);

  XQueryTree (g_display, xid, &root, &parent, &children, &n);
  if ((n > 0) && (children != NULL))
  {
    for (i = 0; i < (int) n; i++)
    {
      XDefineCursor (g_display, children[i], csr);
    }
    XFree (children);
  }

  XFreeCursor (g_display, csr);




However the above code has no effect on this game. This code does change the pointer in other windows I have tried.

I am using an old version of wine 1.0.1 to get this game to work. The current versions 1.4 & 1.5.5 both cause black screens.

Does anyone know what could cause a mouse cursor to not be shown?

Thanks in advance,
Charlie







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

  Powered by Linux