1
0
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:
Alexandre Abadie 2023-07-22 18:37:02 +02:00
parent d11255bb69
commit 4055a0d5a7
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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");