sm7250-common: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number
Change-Id: I62205bb29c610baaabd1647826f5285c4f639ae7
This commit is contained in:
parent
29765ee81b
commit
423e16f202
@ -58,4 +58,7 @@ cc_library_static {
|
||||
include_dirs: [
|
||||
"frameworks/native/services/surfaceflinger/CompositionEngine/include"
|
||||
],
|
||||
header_libs: [
|
||||
"generated_kernel_headers",
|
||||
],
|
||||
}
|
||||
|
@ -5,10 +5,11 @@
|
||||
*/
|
||||
|
||||
#include <compositionengine/FodExtension.h>
|
||||
#include <drm/sde_drm.h>
|
||||
|
||||
uint32_t getFodZOrder(uint32_t z, bool touched) {
|
||||
if (touched) {
|
||||
z |= 0x9000000;
|
||||
z |= FOD_PRESSED_LAYER_ZORDER;
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user