2015-08-05 05:54:00 -04:00
|
|
|
/*
|
|
|
|
|
* draw.c
|
|
|
|
|
* by Reisyukaku
|
2015-08-14 22:28:26 -04:00
|
|
|
* Copyright (c) 2015 All Rights Reserved
|
2015-08-05 05:54:00 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "draw.h"
|
|
|
|
|
#include "fs.h"
|
2015-08-21 14:11:23 -04:00
|
|
|
#include "memory.h"
|
2015-08-05 05:54:00 -04:00
|
|
|
|
2016-02-08 03:37:03 +01:00
|
|
|
static struct fb* fb = (struct fb*) 0x23FFFE00;
|
|
|
|
|
|
2015-08-06 01:17:10 -04:00
|
|
|
void clearScreen(void){
|
|
|
|
|
memset(fb->top_left, 0, 0x38400);
|
|
|
|
|
memset(fb->top_right, 0, 0x38400);
|
|
|
|
|
memset(fb->bottom, 0, 0x38400);
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-05 05:54:00 -04:00
|
|
|
void loadSplash(void){
|
2015-08-06 01:17:10 -04:00
|
|
|
clearScreen();
|
2016-02-08 03:37:03 +01:00
|
|
|
if(fileRead(fb->top_left, "/rei/splash.bin", 0x46500) != 0) return;
|
|
|
|
|
unsigned i,t; for(t=220;t>0;t--){for(i=0xFFFF;i>0;i--);}; //Ghetto sleep func
|
2015-08-05 05:54:00 -04:00
|
|
|
}
|