diff options
author | 2024-10-03 03:42:49 +0000 | |
---|---|---|
committer | 2024-10-03 15:52:40 +0000 | |
commit | dfee5a2c360f4660dfad53bfd06d7923f98e242e (patch) | |
tree | c3aa5638ace0a392c72140e3230ab5e0a907dd53 /libs/gui/SurfaceComposerClient.cpp | |
parent | f151262626f1c08a104cc35d9864493ea8a72dec (diff) |
Fix rounding error when constructing Rect from FloatRect
Current rounding logic does not handle negative values
correctly. FloatRect(-1080,...) is converted to Rect(-1079,...)
Fix this by using the standard rounding function.
Flag: EXEMPT build error (b/350967139)
Bug: 310950423
Test: presubmit
Change-Id: Ib8c5c393040149225e5b2bc858c21894e306a456
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions