From 73a8952e3dd2eae66f01721a6aec2053d185c6a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 May 2018 06:09:24 +0200 Subject: Update libpreview, also render page description --- src/WebPagePreview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/WebPagePreview.cpp') diff --git a/src/WebPagePreview.cpp b/src/WebPagePreview.cpp index 0d23285..3922e73 100644 --- a/src/WebPagePreview.cpp +++ b/src/WebPagePreview.cpp @@ -3,8 +3,9 @@ namespace dchat { - WebPagePreview::WebPagePreview(const sf::String &_title) : - title(_title, ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 10, 0) + WebPagePreview::WebPagePreview(const sf::String &_title, const sf::String &_description) : + title(_title, ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 10, 0), + description(_description, ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 10, 0) { } -- cgit v1.2.3