mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19844
19844: tests/drivers/disp_dev: fix off by one in display area r=maribu a=aabadie Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
This commit is contained in:
commit
683041979b
@ -70,9 +70,9 @@ int main(void)
|
||||
}
|
||||
|
||||
area.x1 = ((max_width - RIOT_LOGO_WIDTH) >> 1);
|
||||
area.x2 = ((max_width + RIOT_LOGO_WIDTH) >> 1);
|
||||
area.x2 = ((max_width + RIOT_LOGO_WIDTH) >> 1) - 1;
|
||||
area.y1 = ((max_height - RIOT_LOGO_HEIGHT) >> 1);
|
||||
area.y2 = ((max_height + RIOT_LOGO_HEIGHT) >> 1);
|
||||
area.y2 = ((max_height + RIOT_LOGO_HEIGHT) >> 1) - 1;
|
||||
disp_dev_map(disp_dev->dev, &area, (const uint16_t *)picture);
|
||||
|
||||
puts("SUCCESS");
|
||||
|
Loading…
Reference in New Issue
Block a user