X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.cpp;h=6a4c783ef50222b0664fe61489e3b7443674ff70;hb=bfa8d0303d57e62fb73dad96d1b521760d475cf8;hp=1dcf722f9e94e06db392822aabad9e6abb6d5782;hpb=7c2a8b8285278b8a3077b311d82f05ea0463a96e;p=blank.git diff --git a/src/app/Runtime.cpp b/src/app/Runtime.cpp index 1dcf722..6a4c783 100644 --- a/src/app/Runtime.cpp +++ b/src/app/Runtime.cpp @@ -1,5 +1,7 @@ #include "Runtime.hpp" +#include "init.hpp" + #include #include #include @@ -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: