From 41d26459acf17acc71cbad2a10d04479e69b94db Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Mon, 9 Aug 2010 15:56:42 +0000 Subject: [PATCH] Fixed the code example of the CSFML API documentation git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1546 4e206d99-4929-0410-ac5d-dfc041789085 --- CSFML/doc/build/Doxygen.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CSFML/doc/build/Doxygen.hpp b/CSFML/doc/build/Doxygen.hpp index 7f537d38..421b0fe3 100644 --- a/CSFML/doc/build/Doxygen.hpp +++ b/CSFML/doc/build/Doxygen.hpp @@ -23,7 +23,7 @@ /// sfImage* image; /// sfSprite* sprite; /// sfFont* font; -/// sfString* text; +/// sfText* text; /// sfMusic* music; /// sfEvent event; /// @@ -37,16 +37,16 @@ /// if (!image) /// return EXIT_FAILURE; /// sprite = sfSprite_Create(); -/// sfSprite_SetImage(sprite, image); +/// sfSprite_SetImage(sprite, image, sfTrue); /// /// /* Create a graphical string to display */ -/// font = sfFont_CreateFromFile("arial.ttf", 50, NULL); +/// font = sfFont_CreateFromFile("arial.ttf"); /// if (!font) /// return EXIT_FAILURE; /// text = sfString_Create(); -/// sfString_SetText(text, "Hello SFML"); -/// sfString_SetFont(text, font); -/// sfString_SetSize(text, 50); +/// sfText_SetString(text, "Hello SFML"); +/// sfText_SetFont(text, font); +/// sfText_SetSize(text, 50); /// /// /* Load a music to play */ /// music = sfMusic_CreateFromFile("nice_music.ogg");