Commit 53a831e1 authored by Donald Haase's avatar Donald Haase
Browse files

Properly use speed arg of vid_shake

parent f7bc915a
...@@ -60,12 +60,12 @@ void vid_shake(char speed) { ...@@ -60,12 +60,12 @@ void vid_shake(char speed) {
for(j=(shake_dist * -1); j<shake_dist; j+=shake_stride) { for(j=(shake_dist * -1); j<shake_dist; j+=shake_stride) {
PVR_SET(PVR_BITMAP_Y, ((bitmapy + j) << 16) | (bitmapy +j)); PVR_SET(PVR_BITMAP_Y, ((bitmapy + j) << 16) | (bitmapy +j));
thd_sleep(5); thd_sleep(speed);
} }
for(j=shake_dist; j>(shake_dist * -1); j-=shake_stride) { for(j=shake_dist; j>(shake_dist * -1); j-=shake_stride) {
PVR_SET(PVR_BITMAP_Y, ((bitmapy + j) << 16) | (bitmapy +j)); PVR_SET(PVR_BITMAP_Y, ((bitmapy + j) << 16) | (bitmapy +j));
thd_sleep(5); thd_sleep(speed);
} }
} }
...@@ -246,7 +246,7 @@ int main(int argc, char **argv) { ...@@ -246,7 +246,7 @@ int main(int argc, char **argv) {
continue; continue;
} }
else if(st->buttons & CONT_A) { else if(st->buttons & CONT_A) {
vid_shake(-1); vid_shake(5);
start_secs = 0; start_secs = 0;
} }
else if(st->buttons & CONT_B) { else if(st->buttons & CONT_B) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment