Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
db116201
Commit
db116201
authored
Aug 09, 2015
by
devsaurus
Browse files
prefix local routines in ucg_polygon
parent
a264cdb2
Changes
1
Show whitespace changes
Inline
Side-by-side
app/ucglib/ucg_polygon.c
View file @
db116201
...
@@ -269,12 +269,12 @@ static void pg_exec(pg_struct *pg, ucg_t *ucg)
...
@@ -269,12 +269,12 @@ static void pg_exec(pg_struct *pg, ucg_t *ucg)
/*===========================================*/
/*===========================================*/
/* API procedures */
/* API procedures */
void
pg_ClearPolygonXY
(
pg_struct
*
pg
)
void
ucg_
pg_ClearPolygonXY
(
pg_struct
*
pg
)
{
{
pg
->
cnt
=
0
;
pg
->
cnt
=
0
;
}
}
void
pg_AddPolygonXY
(
pg_struct
*
pg
,
ucg_t
*
ucg
,
int16_t
x
,
int16_t
y
)
void
ucg_
pg_AddPolygonXY
(
pg_struct
*
pg
,
ucg_t
*
ucg
,
int16_t
x
,
int16_t
y
)
{
{
if
(
pg
->
cnt
<
PG_MAX_POINTS
)
if
(
pg
->
cnt
<
PG_MAX_POINTS
)
{
{
...
@@ -284,7 +284,7 @@ void pg_AddPolygonXY(pg_struct *pg, ucg_t *ucg, int16_t x, int16_t y)
...
@@ -284,7 +284,7 @@ void pg_AddPolygonXY(pg_struct *pg, ucg_t *ucg, int16_t x, int16_t y)
}
}
}
}
void
pg_DrawPolygon
(
pg_struct
*
pg
,
ucg_t
*
ucg
)
void
ucg_
pg_DrawPolygon
(
pg_struct
*
pg
,
ucg_t
*
ucg
)
{
{
if
(
pg_prepare
(
pg
)
==
0
)
if
(
pg_prepare
(
pg
)
==
0
)
return
;
return
;
...
@@ -295,17 +295,17 @@ pg_struct ucg_pg;
...
@@ -295,17 +295,17 @@ pg_struct ucg_pg;
void
ucg_ClearPolygonXY
(
void
)
void
ucg_ClearPolygonXY
(
void
)
{
{
pg_ClearPolygonXY
(
&
ucg_pg
);
ucg_
pg_ClearPolygonXY
(
&
ucg_pg
);
}
}
void
ucg_AddPolygonXY
(
ucg_t
*
ucg
,
int16_t
x
,
int16_t
y
)
void
ucg_AddPolygonXY
(
ucg_t
*
ucg
,
int16_t
x
,
int16_t
y
)
{
{
pg_AddPolygonXY
(
&
ucg_pg
,
ucg
,
x
,
y
);
ucg_
pg_AddPolygonXY
(
&
ucg_pg
,
ucg
,
x
,
y
);
}
}
void
ucg_DrawPolygon
(
ucg_t
*
ucg
)
void
ucg_DrawPolygon
(
ucg_t
*
ucg
)
{
{
pg_DrawPolygon
(
&
ucg_pg
,
ucg
);
ucg_
pg_DrawPolygon
(
&
ucg_pg
,
ucg
);
}
}
void
ucg_DrawTriangle
(
ucg_t
*
ucg
,
int16_t
x0
,
int16_t
y0
,
int16_t
x1
,
int16_t
y1
,
int16_t
x2
,
int16_t
y2
)
void
ucg_DrawTriangle
(
ucg_t
*
ucg
,
int16_t
x0
,
int16_t
y0
,
int16_t
x1
,
int16_t
y1
,
int16_t
x2
,
int16_t
y2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment