summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-10-19 15:07:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-19 15:07:40 +0200
commit6424b637f41fbbb4fab27921a031dbfe62e84625 (patch)
tree73c265cab85243a59af96f6722863543ad9ebe34 /lib
parent489e3a0c1458f0cbe0513bed8adbc5bac101b6bf (diff)
parent162cbde1dd62710a506d86bce2e57e26dad3d801 (diff)
downloadbarebox-6424b637f41fbbb4fab27921a031dbfe62e84625.tar.gz
barebox-6424b637f41fbbb4fab27921a031dbfe62e84625.tar.xz
Merge branch 'for-next/graphics'
Diffstat (limited to 'lib')
-rw-r--r--lib/gui/2d-primitives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/2d-primitives.c b/lib/gui/2d-primitives.c
index 0f29b32bab..89acc092d5 100644
--- a/lib/gui/2d-primitives.c
+++ b/lib/gui/2d-primitives.c
@@ -61,7 +61,7 @@ static void draw_simple_line(struct screen *sc,
swap(y1, y2);
}
- for (x = x1; x < x2 - 1; x++) {
+ for (x = x1; x <= x2; x++) {
if (!dash ||
(++pixel % (2 * dash)) < dash)
illuminate(sc->info,
@@ -137,7 +137,7 @@ void gu_draw_line(struct screen *sc,
j = y1;
eps = dy - dx;
- for (i = x1; i <= x2 - 1; i++) {
+ for (i = x1; i <= x2; i++) {
if (!dash ||
(++pixel % (2 * dash)) > dash) {
illuminate(sc->info,