summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/xlcd_draw.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-05-04 13:21:07 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-05-04 13:21:07 +0000
commita36c8f1db3b1fbb2ce2dbb834032c4e84f30add7 (patch)
tree65d3214e15daa1efb5782e075b9841848539b334 /apps/plugins/lib/xlcd_draw.c
parent517aca8532af3121d9c75ff293c5269f20c0b540 (diff)
downloadrockbox-a36c8f1db3b1fbb2ce2dbb834032c4e84f30add7.zip
rockbox-a36c8f1db3b1fbb2ce2dbb834032c4e84f30add7.tar.gz
rockbox-a36c8f1db3b1fbb2ce2dbb834032c4e84f30add7.tar.bz2
rockbox-a36c8f1db3b1fbb2ce2dbb834032c4e84f30add7.tar.xz
pluginlib: made local functions in static and made sure that source files include their own header file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17353 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/xlcd_draw.c')
-rw-r--r--apps/plugins/lib/xlcd_draw.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/lib/xlcd_draw.c b/apps/plugins/lib/xlcd_draw.c
index accf3b4..506fe99 100644
--- a/apps/plugins/lib/xlcd_draw.c
+++ b/apps/plugins/lib/xlcd_draw.c
@@ -26,9 +26,9 @@
#include "xlcd.h"
/* sort the given coordinates by increasing x value */
-void sort_points_by_increasing_x(int* x1, int* y1,
- int* x2, int* y2,
- int* x3, int* y3)
+static void sort_points_by_increasing_x(int* x1, int* y1,
+ int* x2, int* y2,
+ int* x3, int* y3)
{
int x, y;
if (*x1 > *x3)
@@ -69,10 +69,10 @@ void sort_points_by_increasing_x(int* x1, int* y1,
sort_points_by_increasing_x(y1, x1, y2, x2, y3, x3)
/* draw a filled triangle, using horizontal lines for speed */
-void xlcd_filltriangle_horizontal(struct screen* display,
- int x1, int y1,
- int x2, int y2,
- int x3, int y3)
+static void xlcd_filltriangle_horizontal(struct screen* display,
+ int x1, int y1,
+ int x2, int y2,
+ int x3, int y3)
{
long fp_x1, fp_x2, fp_dx1, fp_dx2;
int y;
@@ -109,10 +109,10 @@ void xlcd_filltriangle_horizontal(struct screen* display,
}
/* draw a filled triangle, using vertical lines for speed */
-void xlcd_filltriangle_vertical(struct screen* display,
- int x1, int y1,
- int x2, int y2,
- int x3, int y3)
+static void xlcd_filltriangle_vertical(struct screen* display,
+ int x1, int y1,
+ int x2, int y2,
+ int x3, int y3)
{
long fp_y1, fp_y2, fp_dy1, fp_dy2;
int x;