mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-04 13:19:17 -05:00
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
This commit is contained in:
@ -68,7 +68,7 @@ static Mission *missions = NULL;
|
||||
|
||||
static char headline[MAX_TITLE_CHAR] = "\0";
|
||||
|
||||
SpriteFont fontNews;
|
||||
Font fontNews;
|
||||
|
||||
// String (const char *) replacement function
|
||||
static char *StringReplace(char *orig, char *rep, char *with);
|
||||
@ -121,11 +121,11 @@ void InitEndingScreen(void)
|
||||
|
||||
// Generate newspaper with title and subtitle
|
||||
Image imNewspaper = LoadImage("resources/textures/ending_newspaper.png");
|
||||
fontNews = LoadSpriteFontEx("resources/fonts/Lora-Bold.ttf", 32, 250, 0);
|
||||
fontNews = LoadFontEx("resources/fonts/Lora-Bold.ttf", 32, 250, 0);
|
||||
ImageDrawTextEx(&imNewspaper, (Vector2){ 50, 220 }, fontNews, headline, fontNews.baseSize, 0, DARKGRAY);
|
||||
|
||||
texNewspaper = LoadTextureFromImage(imNewspaper);
|
||||
//UnloadSpriteFont(fontNews);
|
||||
//UnloadFont(fontNews);
|
||||
UnloadImage(imNewspaper);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user