mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-26 00:32:20 +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.
|
||||
*/
|
||||
bool GRRLIB_GeckoInit() {
|
||||
u32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
|
||||
if (geckoattached) {
|
||||
usb_flush(EXI_CHANNEL_1);
|
||||
geckoinit = true;
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
u32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
|
||||
if (geckoattached) {
|
||||
usb_flush(EXI_CHANNEL_1);
|
||||
geckoinit = true;
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -48,7 +48,7 @@ void GRRLIB_GeckoPrintf (const char *text, ...) {
|
|||
int size;
|
||||
char tmp[1024];
|
||||
|
||||
if (!(geckoinit)) return;
|
||||
if (!geckoinit) return;
|
||||
|
||||
va_list argp;
|
||||
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_PixModeSync();
|
||||
GRRLIB_FlushTex(tex);
|
||||
if(clear)
|
||||
GX_CopyDisp (xfb[!fb], GX_TRUE);
|
||||
if(clear)
|
||||
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.
|
||||
* @return int 0=OK; -1=Failed
|
||||
* @see GRRLIB_ExitFreetype
|
||||
*/
|
||||
int GRRLIB_InitTTF () {
|
||||
if (FT_Init_FreeType(&ftLibrary)) {
|
||||
|
|
Loading…
Reference in a new issue