when destination type becomes mode(letterbox) -> rect -> mode(letterbox), second
mode(letterbox) setting was ignored because destination.mode.type is same with
first setting. So we have to check destination.mode.type only if destination type
is mode.
Change-Id: I6773745c077198c43ca11a818d62eb13d0a1e08a
return;
}
- if (type != TIZEN_DESTINATION_MODE_TYPE_NONE)
- viewport->type = DESTINATION_TYPE_MODE;
+ if (viewport->type == DESTINATION_TYPE_MODE && viewport->destination.mode.type == type)
+ {
+ PWR("skipped: set twice");
+ return;
+ }
- if (viewport->destination.mode.type == type)
- return;
+ viewport->type = DESTINATION_TYPE_MODE;
PIN("type(%d)", type);