home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!icdoc!sot-ecs!snb90
- From: snb90@uk.ac.soton.ecs (Stewart Brodie)
- Newsgroups: comp.sys.acorn
- Subject: Problem with wimp_readpixtrans
- Message-ID: <12322@ecs.soton.ac.uk>
- Date: 20 Jul 92 18:42:59 GMT
- Sender: news@ecs.soton.ac.uk
- Organization: University of Southampton, UK
- Lines: 34
- Nntp-Posting-Host: chapman
- Originator: snb90@chapman
-
- This should be posted to c.s.a.tech but that group does not appear to
- exist yet (at Southampton anyway). Please respond by MAIL only, and I
- will post a summary of replies next week.
-
- I have come across a problem when writing a program that uses
- Wimp_ReadPixTrans. I have the following fragment of C code which
- gives the error about implicit casts of pointers to non-equal
- pointers:
-
-
- sprite_pixtrans pixeltrans[16];
- sprite_factors fact;
-
- const sprite_id sprid = { { "sprname" } , sprite_id_name };
-
-
- and then later on:
- {
- ..
- wimp_readpixtrans(resspr_area(), &sprid, &fact, pixeltrans);
- ..
- }
-
-
- The bit causing the error is the pixeltrans on the end. I have tries
- explicitly casting this to (sprite_pixtrans *) but the error persists.
- The funny thing is that is worked most of the day and only stopped
- later, but I don't remember changing anything vital ....
-
- Any possible solutions gratefully accepted.
-
- --
- Stewart Brodie
- (snb90@uk.ac.soton.ecs)
-