diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-22 05:58:44 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-22 05:59:18 +0200 |
commit | 1e0e68f9cda51c881b32a54d9eece71c1428f7ac (patch) | |
tree | b8faa1d971c245e3fcf046aa1d2daa1fa601e0f9 /src/main.cpp | |
parent | 424b02609fa34175a4e2aadb95e68b3c9c8dc93c (diff) |
Add video and gif support
Gif streams from url.
Todo: Add play controls to video
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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 <string> #include <SFML/Graphics.hpp> #include <cstring> -#include "process.hpp" +#include <X11/Xlib.h> 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(); } |