]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Runtime.cpp
move init out of Application class
[blank.git] / src / app / Runtime.cpp
index 1dcf722f9e94e06db392822aabad9e6abb6d5782..6a4c783ef50222b0664fe61489e3b7443674ff70 100644 (file)
@@ -1,5 +1,7 @@
 #include "Runtime.hpp"
 
+#include "init.hpp"
+
 #include <cctype>
 #include <cstdlib>
 #include <iostream>
@@ -111,9 +113,6 @@ void Runtime::ReadArgs(int argc, const char *const *argv) {
                                        }
                                }
                        }
-               } else if (isdigit(arg[0])) {
-                       // positional number interpreted as -n
-                       n = strtoul(arg, nullptr, 10);
                } else {
                        cerr << "unable to interpret argument "
                                << i << " (" << arg << ")" << endl;
@@ -144,7 +143,8 @@ int Runtime::Execute() {
                return 1;
        }
 
-       Application app(config);
+       Init init(config.doublebuf, config.multisampling);
+       Application app(init.window, config);
        switch (mode) {
                default:
                case NORMAL: