From 49daa01a1f179be6fca0bb758aa3e090286d3bc5 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 12 Sep 2007 22:04:19 +0000 Subject: [PATCH] code police (and commit test) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14677 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chopper.c | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index c2084f3d0..5e27a5e6e 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c @@ -25,13 +25,17 @@ PLUGIN_HEADER -/*Still To do:*/ -/* - Make original speed and further increases in speed depend more on screen size*/ -/* - attempt to make the tunnels get narrower as the game goes on*/ -/* - make the chopper look better, maybe a picture, and scale according to screen size*/ -/* - use textures for the color screens for background and terrain, eg stars on background*/ -/* - allow choice of different levels [later: different screen themes]*/ -/* - better high score handling, improved screen etc. */ +/* +Still To do: + - Make original speed and further increases in speed depend more on screen size + - attempt to make the tunnels get narrower as the game goes on + - make the chopper look better, maybe a picture, and scale according + to screen size + - use textures for the color screens for background and terrain, + eg stars on background + - allow choice of different levels [later: different screen themes] + - better high score handling, improved screen etc. +*/ #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) @@ -177,7 +181,7 @@ static void chopRenderTerrain(struct CTerrain *ter); void chopper_load(bool newgame); void cleanup_chopper(void); -static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! */ +static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world!*/ { #if LCD_DEPTH > 2 @@ -201,7 +205,8 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! * #elif LCD_DEPTH == 2 rb->lcd_set_foreground(LCD_BLACK); #endif - rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20), SCALE(y-iRotorOffset)); + rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20), + SCALE(y-iRotorOffset)); #if LCD_DEPTH > 2 rb->lcd_set_foreground(LCD_RGBPACK(20,20,50)); @@ -871,13 +876,18 @@ static void chopRenderTerrain(struct CTerrain *ter) rb->lcd_drawline(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2)); - xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay)); - xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay)); + xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2), + SCALE(x2), SCALE(ay)); + xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2), + SCALE(x2), SCALE(ay)); if (ay == 0) - xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE(y2 / 2)); + xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), + SCALE(x2), SCALE(y2 / 2)); else - xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE((LCD_HEIGHT*SIZE) - ((LCD_HEIGHT*SIZE) - y2) / 2)); + xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), + SCALE(x2), SCALE((LCD_HEIGHT*SIZE) - + ((LCD_HEIGHT*SIZE) - y2) / 2)); oldx = x; i++; -- 2.11.4.GIT