mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 23:12:21 +00:00
[CHG] Code formatting
This commit is contained in:
parent
ef709a23b7
commit
03c4b47695
3 changed files with 10 additions and 11 deletions
|
@ -30,13 +30,13 @@ static bool geckoinit = false;
|
||||||
* Initialize USB Gecko.
|
* Initialize USB Gecko.
|
||||||
*/
|
*/
|
||||||
bool GRRLIB_GeckoInit() {
|
bool GRRLIB_GeckoInit() {
|
||||||
u32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
|
u32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
|
||||||
if (geckoattached) {
|
if (geckoattached) {
|
||||||
usb_flush(EXI_CHANNEL_1);
|
usb_flush(EXI_CHANNEL_1);
|
||||||
geckoinit = true;
|
geckoinit = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,7 +48,7 @@ void GRRLIB_GeckoPrintf (const char *text, ...) {
|
||||||
int size;
|
int size;
|
||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
|
|
||||||
if (!(geckoinit)) return;
|
if (!geckoinit) return;
|
||||||
|
|
||||||
va_list argp;
|
va_list argp;
|
||||||
va_start(argp, text);
|
va_start(argp, text);
|
||||||
|
|
|
@ -36,8 +36,8 @@ void GRRLIB_Screen2Texture (int posx, int posy, GRRLIB_texImg *tex, bool clear)
|
||||||
GX_CopyTex(tex->data, GX_FALSE);
|
GX_CopyTex(tex->data, GX_FALSE);
|
||||||
GX_PixModeSync();
|
GX_PixModeSync();
|
||||||
GRRLIB_FlushTex(tex);
|
GRRLIB_FlushTex(tex);
|
||||||
if(clear)
|
if(clear)
|
||||||
GX_CopyDisp (xfb[!fb], GX_TRUE);
|
GX_CopyDisp(xfb[!fb], GX_TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ static void DrawBitmap(FT_Bitmap *bitmap, int offset, int top, const u32 color)
|
||||||
/**
|
/**
|
||||||
* Initialize FreeType library.
|
* Initialize FreeType library.
|
||||||
* @return int 0=OK; -1=Failed
|
* @return int 0=OK; -1=Failed
|
||||||
* @see GRRLIB_ExitFreetype
|
|
||||||
*/
|
*/
|
||||||
int GRRLIB_InitTTF () {
|
int GRRLIB_InitTTF () {
|
||||||
if (FT_Init_FreeType(&ftLibrary)) {
|
if (FT_Init_FreeType(&ftLibrary)) {
|
||||||
|
|
Loading…
Reference in a new issue