diff --git a/framebuffer.cpp b/framebuffer.cpp index b8484fa..4a4b403 100644 --- a/framebuffer.cpp +++ b/framebuffer.cpp @@ -315,10 +315,11 @@ static void *hdmi_ui_loop(void *ptr) break; } } - if(rot != m->currentOrientation) { + int currOrientation = 0; + pTemp->getOrientation(currOrientation); + if(rot != currOrientation) { pTemp->setParameter(OVERLAY_TRANSFORM, rot); - m->currentOrientation = rot; } EVEN_OUT(asX); EVEN_OUT(asY); diff --git a/gralloc_priv.h b/gralloc_priv.h index 49eae72..8ff2582 100644 --- a/gralloc_priv.h +++ b/gralloc_priv.h @@ -228,7 +228,6 @@ struct private_module_t { bool exitHDMIUILoop; float actionsafeWidthRatio; float actionsafeHeightRatio; - int currentOrientation; bool hdmiStateChanged; pthread_mutex_t overlayLock; pthread_cond_t overlayPost;