This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/source/draw.c

21 lines
459 B
C
Raw Normal View History

2015-08-05 11:54:00 +02:00
/*
* draw.c
* by Reisyukaku
2015-08-15 04:28:26 +02:00
* Copyright (c) 2015 All Rights Reserved
2015-08-05 11:54:00 +02:00
*/
#include "draw.h"
#include "fs.h"
#include "memory.h"
2015-08-05 11:54:00 +02:00
void clearScreen(void){
memset(fb->top_left, 0, 0x38400);
memset(fb->top_right, 0, 0x38400);
memset(fb->bottom, 0, 0x38400);
}
2015-08-05 11:54:00 +02:00
void loadSplash(void){
clearScreen();
2015-08-05 11:54:00 +02:00
fileRead(fb->top_left, "/rei/splash.bin", 0x46500);
unsigned i,t; for(t=120;t>0;t--){for(i=0xFFFF;i>0;i--);}; //Ghetto sleep func
2015-08-05 11:54:00 +02:00
}