Example code did not compile with SFML 2.3

0.8
Bruno Van de Velde 2017-03-29 19:07:04 +02:00
parent e058a1c6fc
commit 2c4daaf19d
2 changed files with 2 additions and 4 deletions

View File

@ -48,9 +48,6 @@ SET( MAJOR_VERSION 0 )
SET( MINOR_VERSION 8 )
SET( PATCH_VERSION 0 )
# Disable deprecated warnings from SFML
add_definitions(-DSFML_NO_DEPRECATED_WARNINGS)
# Include the configuration file
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake)

View File

@ -23,6 +23,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define SFML_NO_DEPRECATED_WARNINGS
#include <TGUI/TGUI.hpp>
#include <iostream>
@ -238,7 +239,7 @@ int main()
sf::Text text{"SFML Canvas", *gui.getFont(), 24};
text.setPosition(25, 100);
text.setFillColor({200, 200, 200});
text.setColor({200, 200, 200});
auto canvas = tgui::Canvas::create({200, 140});
canvas->setPosition(420, 430);