From ddff0f1b7ea84f6a1321b8eb8a4d47317873d955 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 23 Apr 2018 09:53:31 +0200 Subject: Add word wrap for message board & TODO TODO: Message board is now redrawn every frame. Text should be modified to render on static & dynamic texture -> text & static images on static texture, gif & video on dynamic texture --- src/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 3ca986f..df5c558 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,17 +1,26 @@ #include "../include/Channel.hpp" #include "../include/ChannelSidePanel.hpp" #include "../include/Cache.hpp" +#include "../include/ResourceCache.hpp" #include #include #include #include +#include using namespace std; using namespace dchat; using namespace TinyProcessLib; -int main() +int main(int argc, char **argv) { + /* + boost::filesystem::path programPath(argv[0]); + auto parentPath = programPath.parent_path(); + printf("parent path: %s\n", parentPath.string().c_str()); + boost::filesystem::current_path(parentPath); // Ensures loading of resources works no matter which path we run this executable from + */ + XInitThreads(); sf::RenderWindow window(sf::VideoMode(1920, 1080), "dchat"); window.setVerticalSyncEnabled(false); -- cgit v1.2.3