Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4018f72a authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Move screen dimensions into a separate struct

Previously, some callers would send in valid values for the width and
height of the screen (because this parameter is required for device
types like touchscreen), while others just sent in zeros.

Instead, make it more explicit in this CL - crash if the struct is not
provided for device types that require it, and allow it to be nullopt
for the other device types.

Bug: 439992405
Test: atest InputTests
Flag: EXEMPT PURE_REFACTOR
Change-Id: I25ee8bf88aea41d388c7f9ba2ae8a51087f19e53
parent 4bf2bd7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment