Calculator Community > Calculator C

[TIGCC] C strange 16x16 sprite error?

<< < (3/3)

Liazon:
O_O *Liazon

bfr:
QuoteBegin-MathStuf+Mar 21 2006, 17:51-->QUOTE (MathStuf @ Mar 21 2006, 17:51) Turning on Grayscale would too.

I didn't turn on grayscale for a reason.  I'm trying some stuff out.

I was doing unsigned short mySprite[16]; before, but I kept getting strange error, and only with 16x16 sprites.  It worked with unsigned long mySprite[32]; and unsigned char mySprite[8];.  

Thanks everybody.  I've done stuff with C and TIGCC before, but I'm not very experienced with sprites in C.  I've basically only used unmasked simple 8x8 sprites before, and have also never used paramaters in my programs before.

Ranman:
QuoteBegin-Liazon+Mar 21 2006, 16:31-->QUOTE (Liazon @ Mar 21 2006, 16:31)I forget how you typecast, but what's the point of typecasting data?
Typecasting is usually discouraged. You should only do it when it is really necessary. A good example when typecasting is needed is when you use a function call (API) that you do not have control over. This applies to data as well.

Here is an example:

You declare the following 3 variables:

c1-->CODE ec1int myInt1;

Navigation

[0] Message Index

[*] Previous page

Go to full version