Hi!
There's a WriteBackground function in display_syscalls.h. I've found its description:
syscall 0x1EF7 : void WriteBackground( void*target, int width, int height, TBGRbitmap*source, int P5, int P6, int P7 );
Sets a background image.
target: pointer to the desitation of the background bitmap.
width: 384
height: 192
source: pointer to a TBGRBitmap-structure.
P5, P6 and P7: set these to zero. P6 could be used as y-offset.
typedef struct{
unsigned short width;
unsigned short height;
unsigned short unknown1;
unsigned short unknown2;
unsigned short unknown3;
unsigned short unknown4;
unsigned short*bitmap;
} TBGRbitmap;
The TBGRbitmap-members:
width: 384.
height: 192.
unknown1: 0x10
unknown2: 0x00
unknown3: 0x01
unknown4: 0xF800
bitmap: pointer to an unsigned short bitmap.
But it's not clear me that what the target is. Can anyone show me a sample code with this function? I haven't found one yet.
There's a WriteBackground function in display_syscalls.h. I've found its description:
Quote:
syscall 0x1EF7 : void WriteBackground( void*target, int width, int height, TBGRbitmap*source, int P5, int P6, int P7 );
Sets a background image.
target: pointer to the desitation of the background bitmap.
width: 384
height: 192
source: pointer to a TBGRBitmap-structure.
P5, P6 and P7: set these to zero. P6 could be used as y-offset.
typedef struct{
unsigned short width;
unsigned short height;
unsigned short unknown1;
unsigned short unknown2;
unsigned short unknown3;
unsigned short unknown4;
unsigned short*bitmap;
} TBGRbitmap;
The TBGRbitmap-members:
width: 384.
height: 192.
unknown1: 0x10
unknown2: 0x00
unknown3: 0x01
unknown4: 0xF800
bitmap: pointer to an unsigned short bitmap.
But it's not clear me that what the target is. Can anyone show me a sample code with this function? I haven't found one yet.