mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-03-03 18:21:45 +00:00
fix option mode
Change-Id: I086406120634efac0f1a25f9f68f6e541236f19e Signed-off-by: lizheng <lizheng2@huawei.com>
This commit is contained in:
parent
b8ff11a63e
commit
3e2a628d2b
@ -155,6 +155,11 @@ WMError WindowImpl::Create(sptr<Window> &window,
|
||||
wi->Resize(option->GetWidth(), option->GetHeight())->Await();
|
||||
}
|
||||
|
||||
if (option->GetWindowMode() != WINDOW_MODE_UNSET) {
|
||||
wi->attr.SetMode(option->GetWindowMode());
|
||||
wi->SetWindowMode(option->GetWindowMode());
|
||||
}
|
||||
|
||||
wret = CreateConsumerSurface(wi, option);
|
||||
if (wret != WM_OK) {
|
||||
return wret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user