зеркало из https://github.com/mozilla/gecko-dev.git
Bug 695231 - Disable animated orientation change in Meegotouch window/scene manager. r=jeremias
This commit is contained in:
Родитель
e7195dafa1
Коммит
7ddeb05c7d
|
@ -39,6 +39,7 @@
|
|||
#ifdef MOZ_ENABLE_MEEGOTOUCH
|
||||
#include <MApplication>
|
||||
#include <MWindow>
|
||||
#include <MSceneManager>
|
||||
#endif
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
|
@ -81,8 +82,10 @@ MozQOrientationSensorFilter::filter(QOrientationReading* reading)
|
|||
#ifdef MOZ_ENABLE_MEEGOTOUCH
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||
MWindow* window = MApplication::activeWindow();
|
||||
if (window) {
|
||||
window->setOrientationAngle((M::OrientationAngle)mWindowRotationAngle);
|
||||
if (window && window->sceneManager()) {
|
||||
window->sceneManager()->
|
||||
setOrientationAngle((M::OrientationAngle)mWindowRotationAngle,
|
||||
MSceneManager::ImmediateTransition);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче