Commit 063f1ec
multirom: lib: Fix landscape input layer on boot
* Fix the input layer if the target device boots
in landscape mode instead of portrait mode.
* This commit introduces the following changes:
a) The rotation code is fixed with respect to the proper
offset and the coordinates are now scaled accordingly
b) An additional define for devices is introduced such that
the required rotation of the input layer to matches
display rotation (MR_INPUT_ROTATION);
* This value has to be given in degrees (90, 180, 270),
the rotation direction is clockwise,
and the 0 angle is the portrait mode of the device.
Change-Id: I0701fda49ba5cc890be2e7b3033fbc6915cc48981 parent e80fbed commit 063f1ec
2 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
234 | | - | |
235 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
| |||
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
245 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
246 | 262 | | |
247 | 263 | | |
248 | 264 | | |
| |||
0 commit comments