summaryrefslogtreecommitdiffstats
path: root/samples/RenderScript/MiscSamples
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2011-04-27 18:13:57 -0700
committerStephen Hines <srhines@google.com>2011-05-02 17:42:19 -0700
commitf99909bd503df2a6304e4e66757e26458c6f76b1 (patch)
tree4a8a0fae244936ac0a0640f1f178df5c74cf89ac /samples/RenderScript/MiscSamples
parent3f2b06f3c5b63c716d305eeedc8655114666015a (diff)
downloadandroid_development-f99909bd503df2a6304e4e66757e26458c6f76b1.tar.gz
android_development-f99909bd503df2a6304e4e66757e26458c6f76b1.tar.bz2
android_development-f99909bd503df2a6304e4e66757e26458c6f76b1.zip
Fix RS graphics samples.
Change-Id: I7434dfa21707d506cd79897068d9f1d02a227521
Diffstat (limited to 'samples/RenderScript/MiscSamples')
-rw-r--r--samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rslist.rs4
-rw-r--r--samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rsrenderstates.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rslist.rs b/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rslist.rs
index 7b2dae24b..d9d450dc4 100644
--- a/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rslist.rs
+++ b/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rslist.rs
@@ -34,7 +34,7 @@ void init() {
int textPos = 0;
-int root(int launchID) {
+int root(void) {
rsgClearColor(0.0f, 0.0f, 0.0f, 0.0f);
@@ -45,7 +45,7 @@ int root(int launchID) {
rsgBindFont(gItalic);
rs_allocation listAlloc;
- rsSetObject(&listAlloc, rsGetAllocation(gList));
+ listAlloc = rsGetAllocation(gList);
int allocSize = rsAllocationGetDimX(listAlloc);
int width = rsgGetWidth();
diff --git a/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rsrenderstates.rs b/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rsrenderstates.rs
index b8ec8aa63..5dabd00bc 100644
--- a/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rsrenderstates.rs
+++ b/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/rsrenderstates.rs
@@ -633,7 +633,7 @@ static void displayAnisoSample() {
}
}
-int root(int launchID) {
+int root(void) {
gDt = rsGetDt();