Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!pacbell.com!att!rutgers!cbmvax!cbmehq!cbmdeo!jsmami!jsmoller From: jsmoller@jsmami.UUCP (Jesper Steen Moller) Newsgroups: comp.sys.amiga.programmer Subject: Re: Mouse blanking Message-ID: Date: 10 May 91 23:41:09 GMT Followup-To: comp.sys.amiga.programmer Organization: Danish SofTech Lines: 44 Isn't the best way of blanking the mouse to use SetPointer with a transparent image on the active window, just for the sake of compatibility? One day, the mouse-pointer may not be a sprite... Roughly something like (pseudo-c ;) void BlankMouse() /* function called when blanking and staying blanked */ { struct Window *window; window=IntuitionBase->ActiveWindow; /* assume LockIBase()'d */ if(window!=blankwin) { UnBlankMouse(); blankwin=window; save=all.the.lot.of.values.stashed.in.blankwin.to.describe.the.pointer; SetPointer(blankwin,&zerochips[0],0,0,0,0,0,0); } } void UnBlankMouse() /* to clean up the mess */ { if(blankwin) return; if(CheckIfWindowReallyExistsByTraversingWindowList(blankwin)) SetPointer(save); blankwin=0; } Am I right? -- __ Jesper Steen Moller /// VOICE: +45 31 62 46 45 Maglemosevej 52 __ /// USENET: cbmehq!cbmdeo!jsmami!jsmoller DK-2920 Charl \\\/// FIDONET: 2:231/84.45 Denmark \XX/