From 1e0e68f9cda51c881b32a54d9eece71c1428f7ac Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 22 Apr 2018 05:58:44 +0200 Subject: Add video and gif support Gif streams from url. Todo: Add play controls to video --- src/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 284df56..3ca986f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,7 @@ #include #include #include -#include "process.hpp" +#include using namespace std; using namespace dchat; @@ -12,16 +12,19 @@ using namespace TinyProcessLib; int main() { + XInitThreads(); sf::RenderWindow window(sf::VideoMode(1920, 1080), "dchat"); window.setVerticalSyncEnabled(false); window.setFramerateLimit(60); + //odhtdb::Database database("bootstrap.ring.cx", 4222, Cache::getDchatDir()); + Cache cache; Channel channel; ChannelSidePanel channelSidePanel; channelSidePanel.addChannel(&channel); - + while (window.isOpen()) { sf::Event event; @@ -37,7 +40,7 @@ int main() channel.processEvent(event); } - window.clear(); + window.clear(sf::Color(40, 40, 40)); channel.draw(window, cache); window.display(); } -- cgit v1.2.3