device_xiaomi_sweet/display/display_builtin.cpp
daniml3 d934151ef3 sweet: override the SetRefreshRate HWC builtin display function
* This function causes the refresh rate to change randomly, and
  produces flickering on the display

* Override the original function by renaming the symbol so linker
  uses the symbol from the shim instead of the original library's
  symbol

Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: I2fa6b3f834df79c32d22f5a057da2108cc9cacab
2022-04-13 11:38:43 -04:00

4 lines
99 B
C++

#include <stdint.h>
extern "C" void _ZN3sdm14DisplayBuiltIn14SetRefreshCustEjb(uint32_t, bool) {}