From c32ae480afd196d88acdfdb52d5261a61e0deb08 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 16 Aug 2020 11:28:15 +0200 Subject: RENAMED: FormatText() -> TextFormat() This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText() --- examples/audio/audio_multichannel_sound.c | 2 +- examples/audio/audio_raw_stream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/audio') diff --git a/examples/audio/audio_multichannel_sound.c b/examples/audio/audio_multichannel_sound.c index 17975c49..fe811d33 100644 --- a/examples/audio/audio_multichannel_sound.c +++ b/examples/audio/audio_multichannel_sound.c @@ -51,7 +51,7 @@ int main(void) DrawText("Press SPACE to play new ogg instance!", 200, 120, 20, LIGHTGRAY); DrawText("Press ENTER to play new wav instance!", 200, 180, 20, LIGHTGRAY); - DrawText(FormatText("CONCURRENT SOUNDS PLAYING: %02i", GetSoundsPlaying()), 220, 280, 20, RED); + DrawText(TextFormat("CONCURRENT SOUNDS PLAYING: %02i", GetSoundsPlaying()), 220, 280, 20, RED); EndDrawing(); //---------------------------------------------------------------------------------- diff --git a/examples/audio/audio_raw_stream.c b/examples/audio/audio_raw_stream.c index 85a77bc0..1130eae0 100644 --- a/examples/audio/audio_raw_stream.c +++ b/examples/audio/audio_raw_stream.c @@ -134,7 +134,7 @@ int main(void) ClearBackground(RAYWHITE); - DrawText(FormatText("sine frequency: %i",(int)frequency), GetScreenWidth() - 220, 10, 20, RED); + DrawText(TextFormat("sine frequency: %i",(int)frequency), GetScreenWidth() - 220, 10, 20, RED); DrawText("click mouse button to change frequency", 10, 10, 20, DARKGRAY); // Draw the current buffer state proportionate to the screen -- cgit v1.2.3