arguments handing rewritten, doc updated

This commit is contained in:
evgenyzinoviev 2016-01-15 17:31:31 +01:00
parent f93d890874
commit b75dccb0be
9 changed files with 30 additions and 50 deletions

View file

@ -92,7 +92,7 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
int x = -1, y = -1;
bool center;
if (options.Get(options::kX, &x) && options.Get(options::kY, &y)) {
SetPosition(gfx::Point(x, y), false);
SetPosition(gfx::Point(x, y));
} else if (options.Get(options::kCenter, &center) && center) {
Center();
}