summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2010-11-17 17:31:50 -0800
committerStephen Hines <srhines@google.com>2010-11-17 17:31:50 -0800
commit0be001090cc58063dc3128f225c25837bd7d40c3 (patch)
treeb624c0c64ab9c1320312371487a6808e170d08c9
parent8792d8164337191fe53c161ad21a7da02843cade (diff)
downloadandroid_packages_wallpapers_MagicSmoke-0be001090cc58063dc3128f225c25837bd7d40c3.tar.gz
android_packages_wallpapers_MagicSmoke-0be001090cc58063dc3128f225c25837bd7d40c3.tar.bz2
android_packages_wallpapers_MagicSmoke-0be001090cc58063dc3128f225c25837bd7d40c3.zip
Mark non-exported functions as static.
Change-Id: Ibcab2f01cc51f192b0cf887a8773b7de4844bad4
-rw-r--r--src/com/android/magicsmoke/clouds.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/magicsmoke/clouds.rs b/src/com/android/magicsmoke/clouds.rs
index 6d20950..946bdf5 100644
--- a/src/com/android/magicsmoke/clouds.rs
+++ b/src/com/android/magicsmoke/clouds.rs
@@ -99,7 +99,7 @@ static int currentpreset;
static int lastuptime;
static float timedelta;
static float4 clearColor = {0.5f, 0.0f, 0.0f, 1.0f};
-int countTextures()
+static int countTextures()
{
int pos = 0;
for (int i = 0; i < 5; i++)
@@ -116,7 +116,7 @@ do { \
s.y = cos(__agl); \
} while (0)
-void update()
+static void update()
{
rs_program_vertex pv;
rsSetObject(&pv, gPV5tex);
@@ -172,7 +172,7 @@ void update()
}
}
-void drawClouds() {
+static void drawClouds() {
if (gRotate != 0)
{
rotation[0] += 0.100f * timedelta;
@@ -225,7 +225,7 @@ void drawClouds() {
}
}
-int premul(int rgb, int a) {
+static int premul(int rgb, int a) {
int r = (rgb >> 16) * a + 1;
r = (r + (r >> 8)) >> 8;
int g = ((rgb >> 8) & 0xff) * a + 1;
@@ -236,7 +236,7 @@ int premul(int rgb, int a) {
}
-void makeTexture(int *src, int *dst, rs_allocation rsid) {
+static void makeTexture(int *src, int *dst, rs_allocation rsid) {
int x;
int y;
@@ -342,7 +342,7 @@ void makeTexture(int *src, int *dst, rs_allocation rsid) {
rsgUploadToTexture(rsid, 0);
}
-void makeTextures() {
+static void makeTextures() {
alphafactor = 1.f;
makeTexture((int*)gNoisesrc1, (int*)gNoisedst1, gTnoise1);
makeTexture((int*)gNoisesrc2, (int*)gNoisedst2, gTnoise2);