mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/drivers/disp_dev: fix off by one in display area
This commit is contained in:
parent
d11255bb69
commit
4055a0d5a7
@ -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