add width and height to clogframe params

This commit is contained in:
David Botton 2022-09-02 16:33:27 -04:00
parent 92381b366a
commit 9d82642b3c
4 changed files with 10 additions and 5 deletions

View file

@ -5,7 +5,7 @@
int main(int argc,char* argv[]) {
webview::webview w(true, nullptr);
w.set_title(argv[1]);
w.set_size(640, 480, WEBVIEW_HINT_NONE);
w.set_size(std::stoi(argv[3]), std::stoi(argv[4]), WEBVIEW_HINT_NONE);
std::ostringstream o;
o << "http://127.0.0.1:" << argv[2];
w.navigate(o.str());