You are not logged in.

#1 2009-08-18 18:51:04

fatquack
Member

[RESOLVED] GFX messing up

I have a blank sqaure of white 16x16 and i draw it as i do everything else, yet only this graphic is messing up (not appearing properly).  I cannot work out why  could anyone help?

Offline

 

#2 2009-08-18 19:05:30

Crayon
Bad Mother Fucker

Re: [RESOLVED] GFX messing up

Could you paste some code please...

Offline

 

#3 2009-08-18 19:31:56

fatquack
Member

Re: [RESOLVED] GFX messing up

Code:

#include "gfx/FQ_whitesquare.h"

#include "C:\devkitPro\GRR\GRRLIB\GRRLIB.h"

GRRLIB_texImg WHITEBLOCK;

int main(void) {
GRRLIB_Init();
WHITEBLOCK = GRRLIB_LoadTexture(FQ_whitesquare);

while(1) {
GRRLIB_FillScreen(0x00000000);
GRRLIB_DrawImg(0, 0, WHITEBLOCK, 0, 1, 1, 0xFFFFFFFF);
GRRLIB_Render();
}

return 0;
}

That draws a messed up image, not a 64 by 64 white square.  whitesquare.png is a 64x64 png entirely white, nothing else.  i converted it using raw2c.

Offline

 

#4 2009-08-18 19:53:34

Crayon
Bad Mother Fucker

Re: [RESOLVED] GFX messing up

fatquack wrote:

That draws a messed up image, not a 64 by 64 white square.  whitesquare.png is a 64x64 png entirely white, nothing else.  i converted it using raw2c.

Could you try to convert it with WiiBuilder to see if you get any warnings: http://wiibrew.org/wiki/WiiBuilder

Offline

 

#5 2009-08-18 19:56:27

fatquack
Member

Re: [RESOLVED] GFX messing up

Yes there was a warning, ' only 24bit and 32bit PNGs are allowed'  I assume then, that it will work if i change it to a 24/32 bit PNG (it is currently 8 bit).  Thanks for the help.

Offline

 

#6 2009-08-18 19:58:00

Crayon
Bad Mother Fucker

Re: [RESOLVED] GFX messing up

No problem wink

Offline

 

Board footer

Powered by FluxBB