diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2020-05-14 10:23:55 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-26 15:03:59 +0000 |
commit | 1c3faabf2472c5eee9ceabc233896e7c28e0d863 (patch) | |
tree | d9a8b3d963e6f729ae6918fc0a734d25598bf23e /toolchain.inc | |
parent | 309ccf74dd7c25874572c6a62ffc7042dcdadc66 (diff) |
libpayload/cbgfx: Remove gap between adjacent boxes
When drawing two adjacent boxes with draw_box(), there will be a gap
between them. This is due to the truncation in integer division when
calculating the bottom right coordinate of the box.
In this patch, the relative bottom right coordinate is calculated before
transforming to an absolute one. The same issue is also fixed for
draw_rounded_box().
Also check validity of 'pos_rel' and 'dim_rel' arguments for
draw_rounded_box().
BRANCH=none
BUG=chromium:1082593
TEST=emerge-nami libpayload
Change-Id: I073cf8ec6eb3952a0dcb417b4c3c3c7047567837
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41392
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'toolchain.inc')
0 files changed, 0 insertions, 0 deletions