frameworks/base
修訂 | 596dbf6d8d4f00e7452aacdfcff0d829e1edefca (tree) |
---|---|
時間 | 2020-04-14 23:46:53 |
作者 | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Chih-Wei Huang |
Modify color inversion matrix to swap Red and Blue colors
Instead of color inversion it will produce Red and Blue colors swap,
in order to correct displayed colors for R4xx and other old drivers
still based on KMS API
@@ -153,10 +153,10 @@ public final class ColorDisplayService extends SystemService { | ||
153 | 153 | * ProgramCache for full implementation details. |
154 | 154 | */ |
155 | 155 | private static final float[] MATRIX_INVERT_COLOR = new float[]{ |
156 | - 0.402f, -0.598f, -0.599f, 0f, | |
157 | - -1.174f, -0.174f, -1.175f, 0f, | |
158 | - -0.228f, -0.228f, 0.772f, 0f, | |
159 | - 1f, 1f, 1f, 1f | |
156 | + 0.0f, 0.0f, 1.0f, 0, | |
157 | + 0.0f, 1.0f, 0.0f, 0, | |
158 | + 1.0f, 0.0f, 0.0f, 0, | |
159 | + 0, 0, 0, 1 | |
160 | 160 | }; |
161 | 161 | |
162 | 162 | private final Handler mHandler; |