Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion source/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
#include "ezkernel.h"

extern void wait_btn();

extern u32 UIENABLED;
int current_y = 1;
extern u8 pReadCache [MAX_pReadCache_size]EWRAM_BSS;
//******************************************************************************
void IWRAM_CODE Clear(u16 x, u16 y, u16 w, u16 h, u16 c, u8 isDrawDirect)
{
if(!UIENABLED) return;
u16 *p;
u16 yi,ww,hh;
if(isDrawDirect) {
Expand All @@ -43,6 +44,7 @@ void IWRAM_CODE Clear(u16 x, u16 y, u16 w, u16 h, u16 c, u8 isDrawDirect)
//******************************************************************************
void IWRAM_CODE ClearWithBG(u16* pbg,u16 x, u16 y, u16 w, u16 h, u8 isDrawDirect)
{
if(!UIENABLED) return;
u16 *p;
u16 yi,ww,hh;
if(isDrawDirect) {
Expand All @@ -60,6 +62,7 @@ void IWRAM_CODE ClearWithBG(u16* pbg,u16 x, u16 y, u16 w, u16 h, u8 isDrawDirect
//******************************************************************************
void IWRAM_CODE DrawPic(u16 *GFX, u16 x, u16 y, u16 w, u16 h, u8 isTrans, u16 tcolor, u8 isDrawDirect)
{
if(!UIENABLED) return;
u16 *p,c;
u16 xi,yi,ww,hh;
if(isDrawDirect) {
Expand Down Expand Up @@ -88,6 +91,7 @@ void IWRAM_CODE DrawPic(u16 *GFX, u16 x, u16 y, u16 w, u16 h, u8 isTrans, u16 tc
//---------------------------------------------------------------------------------
void DrawHZText12(char *str, u16 len, u16 x, u16 y, u16 c, u8 isDrawDirect)
{
if(!UIENABLED) return;
u32 i,l,hi=0;
u32 location;
u8 cc,c1,c2;
Expand Down
Loading