arguments handing rewritten, doc updated
This commit is contained in:
parent
f93d890874
commit
b75dccb0be
9 changed files with 30 additions and 50 deletions
|
@ -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, ¢er) && center) {
|
||||
Center();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue