summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/tetris.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/recorder/tetris.c b/apps/recorder/tetris.c
index e22c4f00cc..804e4a4546 100644
--- a/apps/recorder/tetris.c
+++ b/apps/recorder/tetris.c
@@ -103,12 +103,9 @@ static const char block_data[7][4][2][4] =
103 } 103 }
104}; 104};
105 105
106/* not even pseudo random :) */
107int t_rand(int range) 106int t_rand(int range)
108{ 107{
109 static int count; 108 return current_tick % range;
110 count++;
111 return count % range;
112} 109}
113 110
114void draw_frame(int fstart_x,int fstop_x,int fstart_y,int fstop_y) 111void draw_frame(int fstart_x,int fstop_x,int fstart_y,int fstop_y)