Hi!

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.
I'm not completely sure myself since I've never used that syscall, but I think the destination should be the VRAM (0xA8000000).
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement