Tealion
Still Fresh
OK, I know a similar question to this has just been asked but I cannot get the GP32 to display an image with Mr.Mirkos SDK.
I converted my picture to an array with the provided program and then used the following code:
and for some reason the picture is not displaying i just get a load of junk on the screen. What am i doing wrong? (its probably something stupid, it might be the convertor???? !)
Thankyou
Teal
I converted my picture to an array with the provided program and then used the following code:
Code:
#include <gp32.h>
#include "data.c"
unsigned short *framebuffer;
int main(void)
{
int i;
framebuffer = (unsigned short*) FRAMEBUFFER;
gp_ButtonInit();
gp_SetScreen(framebuffer, 16);
for(i=0; i < 320*240; i++)
framebuffer[i] = data[i];
while(1)
if(gp_ButtonResult() &BA) gp_Reset();
return 0;
}
and for some reason the picture is not displaying i just get a load of junk on the screen. What am i doing wrong? (its probably something stupid, it might be the convertor???? !)
Thankyou
Teal