mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] 2d-primitives: fix typos in function names in comments
@ 2017-11-01 16:02 Nikita Yushchenko
  2017-11-03  7:52 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Nikita Yushchenko @ 2017-11-01 16:02 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Nikita Yushchenko, barebox, Chris Healy

This fixes gl_* -> gu_* in several places.

Reported-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
 lib/gui/2d-primitives.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/gui/2d-primitives.c b/lib/gui/2d-primitives.c
index 89acc092d..82e59d9a6 100644
--- a/lib/gui/2d-primitives.c
+++ b/lib/gui/2d-primitives.c
@@ -72,7 +72,7 @@ static void draw_simple_line(struct screen *sc,
 }
 
 /**
- * gl_draw_line - draw a 2D dashed line between (x1, y1) and (x2,y2)
+ * gu_draw_line - draw a 2D dashed line between (x1, y1) and (x2,y2)
  *
  * @sc: screen to draw on
  * @x1, @y1: first point defining the line
@@ -80,7 +80,7 @@ static void draw_simple_line(struct screen *sc,
  * @r, @g, @b, @a: line's color
  * @dash: dash length (0 denotes solid line)
  *
- * gl_draw_line() implements integer version of Bresenham's algoritm
+ * gu_draw_line() implements integer version of Bresenham's algoritm
  * as can be found here:
  *
  * http://www.idav.ucdavis.edu/education/GraphicsNotes/Bresenhams-Algorithm.pdf
@@ -158,7 +158,7 @@ void gu_draw_line(struct screen *sc,
 }
 
 /**
- * gl_draw_circle - draw a 2D circle with center at (x0, y0)
+ * gu_draw_circle - draw a 2D circle with center at (x0, y0)
  *
  * @sc: screen to draw on
  * @x0, @y0: coordinates of circle's center
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2d-primitives: fix typos in function names in comments
  2017-11-01 16:02 [PATCH] 2d-primitives: fix typos in function names in comments Nikita Yushchenko
@ 2017-11-03  7:52 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-11-03  7:52 UTC (permalink / raw)
  To: Nikita Yushchenko; +Cc: barebox, Chris Healy

On Wed, Nov 01, 2017 at 07:02:26PM +0300, Nikita Yushchenko wrote:
> This fixes gl_* -> gu_* in several places.
> 
> Reported-by: Chris Healy <cphealy@gmail.com>
> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> ---
>  lib/gui/2d-primitives.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/lib/gui/2d-primitives.c b/lib/gui/2d-primitives.c
> index 89acc092d..82e59d9a6 100644
> --- a/lib/gui/2d-primitives.c
> +++ b/lib/gui/2d-primitives.c
> @@ -72,7 +72,7 @@ static void draw_simple_line(struct screen *sc,
>  }
>  
>  /**
> - * gl_draw_line - draw a 2D dashed line between (x1, y1) and (x2,y2)
> + * gu_draw_line - draw a 2D dashed line between (x1, y1) and (x2,y2)
>   *
>   * @sc: screen to draw on
>   * @x1, @y1: first point defining the line
> @@ -80,7 +80,7 @@ static void draw_simple_line(struct screen *sc,
>   * @r, @g, @b, @a: line's color
>   * @dash: dash length (0 denotes solid line)
>   *
> - * gl_draw_line() implements integer version of Bresenham's algoritm
> + * gu_draw_line() implements integer version of Bresenham's algoritm
>   * as can be found here:
>   *
>   * http://www.idav.ucdavis.edu/education/GraphicsNotes/Bresenhams-Algorithm.pdf
> @@ -158,7 +158,7 @@ void gu_draw_line(struct screen *sc,
>  }
>  
>  /**
> - * gl_draw_circle - draw a 2D circle with center at (x0, y0)
> + * gu_draw_circle - draw a 2D circle with center at (x0, y0)
>   *
>   * @sc: screen to draw on
>   * @x0, @y0: coordinates of circle's center
> -- 
> 2.11.0
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-03  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 16:02 [PATCH] 2d-primitives: fix typos in function names in comments Nikita Yushchenko
2017-11-03  7:52 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox