mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 07:38:17 +00:00
davinci: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number
Change-Id: I93d8519ca43db307abdf958354920da10776aa80
This commit is contained in:
@@ -14,11 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <drm/sde_drm.h>
|
||||
#include <compositionengine/FodExtension.h>
|
||||
|
||||
uint32_t getFodZOrder(uint32_t z, bool touched) {
|
||||
if (touched) {
|
||||
z |= 0x20000000u;
|
||||
z |= FOD_PRESSED_LAYER_ZORDER;
|
||||
}
|
||||
|
||||
return z;
|
||||
|
||||
Reference in New Issue
Block a user