I'm new to GP32 developing (and to the GP32 itself), and I've come across a problem. I used the example Garfield sprite's raw C file for my sprite drawing script:
This compiles and runs fine, but part of Garfield's right half appears on the left. I've probably done some stupid n00b mistake, that's why I'm posting here
Code:
#include "gp32.h"
#include "garfield.c"
unsigned short *framebuffer;
unsigned short *screen;
int main() {
short x=100,y=100;
int i;
framebuffer = (u16*) FRAMEBUFFER;
gp_setCpuspeed(66);
gp_initFramebuffer(framebuffer,16,85);
for (i=0;i<320*240;i++) {framebuffer[i]=0xFFFF;}
gp_drawSprite((u16*)garfield,x,y,framebuffer,160,160);
while (1) { }
}
This compiles and runs fine, but part of Garfield's right half appears on the left. I've probably done some stupid n00b mistake, that's why I'm posting here