nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: GrmoveCursor()!
From: wangzhenyuan
Date: Tue, 9 Jul 2002 13:0:8 +0800

Hello,erveryone:
   I'm reading the code of srvmain.c,in the 
fuction Gsinitialize() there are (0.89pre8):

    GrMoveCursor(psd->xvirtres / 2, psd->yvirtres / 2);
	cid = GrNewCursor(16, 16, 0, 0, WHITE, BLACK, cursorbits, cursormask);
	GrSetWindowCursor(GR ROOT WINDOW ID, cid);
	stdcursor = GsFindCursor(cid);
 
  After GdShowCursor(psd) to position a curcor 
on the screen ,I don't understand the next
step it does ,psd->xvirtres and psd->yvirtres 
stand what? 
  And I find two version of GrnewCursor() and
Grsetwindowcursor() ,in srvfunc.c and client.c,
which one can I read here?
  Do anyone can give a explanation on uper code?

  Thanks in advance!
wangzhenyuan
wangzhenyuan21@sina.com
2002-07-09




nanogui@linuxhacker.org