forked from organicmaps/organicmaps
[ios] Moved drapeEngineCreated flag init after screen resize.
This commit is contained in:
parent
d352c5aae5
commit
5eb1ccd31c
1 changed files with 1 additions and 5 deletions
|
@ -100,8 +100,6 @@ double getExactDPI(double contentScaleFactor)
|
|||
[self.widgetsManager setupWidgets:p];
|
||||
GetFramework().CreateDrapeEngine(make_ref(m_factory), move(p));
|
||||
|
||||
_drapeEngineCreated = YES;
|
||||
|
||||
LOG(LINFO, ("EAGLView createDrapeEngine Ended"));
|
||||
}
|
||||
|
||||
|
@ -124,6 +122,7 @@ double getExactDPI(double contentScaleFactor)
|
|||
{
|
||||
GetFramework().OnSize(width, height);
|
||||
[self.widgetsManager resize:CGSizeMake(width, height)];
|
||||
self->_drapeEngineCreated = YES;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -133,10 +132,7 @@ double getExactDPI(double contentScaleFactor)
|
|||
int h = height * self.contentScaleFactor;
|
||||
|
||||
if (GetFramework().GetDrapeEngine() == nullptr)
|
||||
{
|
||||
[self createDrapeEngineWithWidth:w height:h];
|
||||
return;
|
||||
}
|
||||
|
||||
[self applyOnSize:w withHeight:h];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue