home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16257 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.9 KB  |  50 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!peora!tarpit!tous!bilver!alex
  3. From: alex@bilver.uucp (Alex Matulich)
  4. Subject: Mouse blanking in 2.0 = TRASH (help!)
  5. Organization: W. J. Vermillion - Winter Park, FL
  6. Date: Mon, 23 Nov 1992 15:51:30 GMT
  7. Message-ID: <1992Nov23.155130.5566@bilver.uucp>
  8. Lines: 40
  9.  
  10.  
  11. I wrote a program that needs to blank the mouse at times.  Under
  12. AmigaDOS 1.3, the method I used worked perfectly.
  13.  
  14. However, now that I've upgraded to 2.04, when I blank the mouse a vertical
  15. bar of trash appears on the screen.  The bar does not move when I move the
  16. mouse.  It's fixed in place, and stays there until I restore the mouse.
  17. The bar is not even in the same position as the mouse when the mouse goes
  18. blank.  It *looks* like a trashed sprite of some sort.
  19.  
  20. Here is what I'm doing.  Please tell me if there's a better way, that will
  21. work under both 1.3 and 2.0....
  22.  
  23. --------------------------------------------------------------------------
  24.  
  25. static short blankpointer { 0, 0 };   // bit image for blank mouse pointer
  26.  .
  27.  .
  28.  .
  29. SetPointer(Window, blankpointer, 1, 1, 0, 0);  // blank the mouse pointer
  30.  .
  31.  . // under 2.0, a vertical bar of trash is now showing on the screen
  32.  .
  33. ClearPointer(Window);  // restore the mouse pointer; bar disappears
  34.  
  35. --------------------------------------------------------------------------
  36.  
  37. If it makes any difference, the 2.0 "Text Overscan" and "Standard
  38. Overscan" are both set to 680x440, but I am using a custom screen and
  39. window, sized to 640x400, in the program above.  I am using SAS C 5.10b
  40. with 1.3 include files.
  41.  
  42. I'm rather new at this.  If someone knows a better way, please post or
  43. send email.  Thanks in advance for any help offered.
  44.  
  45. -- 
  46.  _ |__  Alex Matulich    alex.matulich@oau.org
  47.  /(+__>  Unicorn Research Corp, 4621 N Landmark Dr, Orlando, FL 32817
  48. //| \     UUCP:  alex@bilver.uucp   {peora|ge-dab|uunet!tous}!bilver!alex
  49. ///__)     Internet:  alex@bilver.oau.org | alex%bilver@peora.sdc.ccur.com
  50.