Allow specifiying a font region

This commit is contained in:
Pk11
2021-03-19 16:39:48 -05:00
parent 0b0f88eb59
commit cc53b7d72b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ void Gui::DrawSprite(C2D_SpriteSheet sheet, size_t imgindex, int x, int y, float
Contains initializing Citro2D, Citro3D and the screen targets.
Call this when initing the app.
*/
Result Gui::init(void) {
Result Gui::init(CFG_Region fontRegion) {
C3D_Init(C3D_DEFAULT_CMDBUF_SIZE);
C2D_Init(C2D_DEFAULT_MAX_OBJECTS);
C2D_Prepare();
@@ -86,7 +86,7 @@ Result Gui::init(void) {
/* Load Textbuffer. */
TextBuf = C2D_TextBufNew(4096);
Font = C2D_FontLoadSystem(CFG_REGION_USA); // Load System font.
Font = C2D_FontLoadSystem(fontRegion); // Load System font.
return 0;
}