home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / acorn / 7966 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!icdoc!sot-ecs!snb90
  2. From: snb90@uk.ac.soton.ecs (Stewart Brodie)
  3. Newsgroups: comp.sys.acorn
  4. Subject: Problem with wimp_readpixtrans
  5. Message-ID: <12322@ecs.soton.ac.uk>
  6. Date: 20 Jul 92 18:42:59 GMT
  7. Sender: news@ecs.soton.ac.uk
  8. Organization: University of Southampton, UK
  9. Lines: 34
  10. Nntp-Posting-Host: chapman
  11. Originator: snb90@chapman
  12.  
  13. This should be posted to c.s.a.tech but that group does not appear to
  14. exist yet (at Southampton anyway).  Please respond by MAIL only, and I
  15. will post a summary of replies next week.
  16.  
  17. I have come across a problem when writing a program that uses
  18. Wimp_ReadPixTrans.  I have the following fragment of C code which
  19. gives the error about implicit casts of pointers to non-equal
  20. pointers:
  21.  
  22.  
  23. sprite_pixtrans pixeltrans[16];
  24. sprite_factors  fact;
  25.  
  26. const sprite_id sprid = { { "sprname" } , sprite_id_name };
  27.  
  28.  
  29. and then later on:
  30. {
  31. ..
  32. wimp_readpixtrans(resspr_area(), &sprid, &fact, pixeltrans);
  33. ..
  34. }
  35.  
  36.  
  37. The bit causing the error is the pixeltrans on the end.  I have tries
  38. explicitly casting this to (sprite_pixtrans *) but the error persists.
  39. The funny thing is that is worked most of the day and only stopped
  40. later, but I don't remember changing anything vital ....
  41.  
  42. Any possible solutions gratefully accepted.
  43.  
  44. --
  45. Stewart Brodie
  46. (snb90@uk.ac.soton.ecs)
  47.