diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2019-12-13 17:13:42 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-01-14 18:25:36 +0000 |
commit | a26986e1a7b9ae26224454ec453bba7738a54d55 (patch) | |
tree | 086da36420a343acdc5102d7dc5f2a5191885cb0 /src/device/oprom | |
parent | 8eef3bf3ca27e8a79862422fe9ee0c505b0567cc (diff) |
libpayload: cbgfx: Support drawing a box with rounded corners
A function draw_rounded_box() is added to draw a box with rounded
corners. In addition, this function is different from draw_box() in 2
ways:
- The position and size arguments are relative to the canvas.
- This function supports drawing only the border of a box (linear time
complexity when the thickness is fixed).
BRANCH=none
BUG=b:146105976
TEST=emerge-nami libpayload
Change-Id: Ie480410d2fd8316462d5ff874999ae2317de04f9
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37757
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/device/oprom')
0 files changed, 0 insertions, 0 deletions