diff options
-rw-r--r-- | apps/recorder/tetris.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/recorder/tetris.c b/apps/recorder/tetris.c index 4167e11dd6..fc9a4b787b 100644 --- a/apps/recorder/tetris.c +++ b/apps/recorder/tetris.c | |||
@@ -136,7 +136,7 @@ void draw_block(int x,int y,int block,int frame,bool clear) | |||
136 | } | 136 | } |
137 | } | 137 | } |
138 | 138 | ||
139 | void to_virtual() | 139 | void to_virtual(void) |
140 | { | 140 | { |
141 | int i; | 141 | int i; |
142 | for(i=0;i < 4;i++) | 142 | for(i=0;i < 4;i++) |
@@ -145,7 +145,7 @@ void to_virtual() | |||
145 | (current_x+block_data[current_b][current_f][0][i])) = current_b+1; | 145 | (current_x+block_data[current_b][current_f][0][i])) = current_b+1; |
146 | } | 146 | } |
147 | 147 | ||
148 | bool gameover() | 148 | bool gameover(void) |
149 | { | 149 | { |
150 | int i; | 150 | int i; |
151 | int frame, block, y, x; | 151 | int frame, block, y, x; |
@@ -185,7 +185,7 @@ bool valid_position(int x,int y,int block,int frame) | |||
185 | return true; | 185 | return true; |
186 | } | 186 | } |
187 | 187 | ||
188 | void from_virtual() | 188 | void from_virtual(void) |
189 | { | 189 | { |
190 | int x,y; | 190 | int x,y; |
191 | for(y=0;y < max_y;y++) | 191 | for(y=0;y < max_y;y++) |
@@ -219,7 +219,7 @@ void move_block(int x,int y,int f) | |||
219 | current_f = last_frame; | 219 | current_f = last_frame; |
220 | } | 220 | } |
221 | 221 | ||
222 | void new_block() | 222 | void new_block(void) |
223 | { | 223 | { |
224 | current_b = next_b; | 224 | current_b = next_b; |
225 | current_f = next_f; | 225 | current_f = next_f; |
@@ -238,7 +238,7 @@ void new_block() | |||
238 | draw_block(current_x,current_y,current_b,current_f,false); | 238 | draw_block(current_x,current_y,current_b,current_f,false); |
239 | } | 239 | } |
240 | 240 | ||
241 | int check_lines() | 241 | int check_lines(void) |
242 | { | 242 | { |
243 | int x,y,i; | 243 | int x,y,i; |
244 | bool line; | 244 | bool line; |
@@ -262,7 +262,7 @@ int check_lines() | |||
262 | return lines; | 262 | return lines; |
263 | } | 263 | } |
264 | 264 | ||
265 | void move_down() | 265 | void move_down(void) |
266 | { | 266 | { |
267 | int l; | 267 | int l; |
268 | if(!valid_position(current_x,current_y+1,current_b,current_f)) | 268 | if(!valid_position(current_x,current_y+1,current_b,current_f)) |
@@ -329,7 +329,7 @@ void game_loop(void) | |||
329 | } | 329 | } |
330 | } | 330 | } |
331 | 331 | ||
332 | void init_tetris() | 332 | void init_tetris(void) |
333 | { | 333 | { |
334 | memset(&virtual, 0, sizeof(virtual)); | 334 | memset(&virtual, 0, sizeof(virtual)); |
335 | start_x = 1; | 335 | start_x = 1; |