diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:41:23 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:41:23 +0000 |
commit | 3bd943e046d155e1563f6b8e267d74f0682a4871 (patch) | |
tree | 84934afb624bc0cbfa9c3557fddac0b231725a2e /apps/plugins/invadrox.c | |
parent | 0f5b717c2f9d0f78586f3e36cb450c943868a1b7 (diff) | |
download | rockbox-3bd943e046d155e1563f6b8e267d74f0682a4871.tar.gz rockbox-3bd943e046d155e1563f6b8e267d74f0682a4871.tar.bz2 rockbox-3bd943e046d155e1563f6b8e267d74f0682a4871.zip |
invadrox: make all inline functions static inline
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28024 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r-- | apps/plugins/invadrox.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index 50dda2b34d..b84c3653d1 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c @@ -680,12 +680,12 @@ bool aliens_down, aliens_right, hit_left_border, hit_right_border; #if (LCD_DEPTH >= 8) #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE -inline fb_data get_pixel(int x, int y) +static inline fb_data get_pixel(int x, int y) { return rb->lcd_framebuffer[x*LCD_HEIGHT+y]; } #else -inline fb_data get_pixel(int x, int y) +static inline fb_data get_pixel(int x, int y) { return rb->lcd_framebuffer[ytab[y] + x]; } @@ -698,7 +698,7 @@ static const unsigned char shifts[4] = { 6, 4, 2, 0 }; /* Horizontal packing */ -inline fb_data get_pixel(int x, int y) +static inline fb_data get_pixel(int x, int y) { return (rb->lcd_framebuffer[ytab[y] + (x >> 2)] >> shifts[x & 3]) & 3; } @@ -707,7 +707,7 @@ inline fb_data get_pixel(int x, int y) static const unsigned char shifts[4] = { 0, 2, 4, 6 }; -inline fb_data get_pixel(int x, int y) +static inline fb_data get_pixel(int x, int y) { return (rb->lcd_framebuffer[ytab[y] + x] >> shifts[y & 3]) & 3; } @@ -739,7 +739,7 @@ void draw_number(int x, int y, int num, int digits) } -inline void draw_score(void) +static inline void draw_score(void) { draw_number(SCORENUM_X, SCORENUM_Y, score, 4); if (score > hiscore.score) { @@ -787,7 +787,7 @@ void draw_lives(void) } -inline void draw_aliens(void) +static inline void draw_aliens(void) { int i; @@ -805,7 +805,7 @@ inline void draw_aliens(void) /* Return false if there is no next alive alien (round is over) */ -inline bool next_alien(void) +static inline bool next_alien(void) { bool ret = true; @@ -954,7 +954,7 @@ bool move_aliens(void) } -inline void draw_ship(void) +static inline void draw_ship(void) { /* Erase old ship */ if (old_ship_x < ship_x) { @@ -988,7 +988,7 @@ inline void draw_ship(void) } -inline void fire_alpha(int xc, int yc, fb_data color) +static inline void fire_alpha(int xc, int yc, fb_data color) { int oldmode = rb->lcd_get_drawmode(); @@ -1180,7 +1180,7 @@ void move_fire(void) /* Return a BOMBER alien */ -inline int random_bomber(void) +static inline int random_bomber(void) { int i, col; @@ -1206,7 +1206,7 @@ inline int random_bomber(void) } -inline void draw_bomb(int i) +static inline void draw_bomb(int i) { rb->lcd_bitmap_part(invadrox_bombs, bombs[i].type * BOMB_WIDTH, bombs[i].frame * BOMB_HEIGHT, @@ -1367,7 +1367,7 @@ void move_bombs(void) } -inline void move_ship(void) +static inline void move_ship(void) { ship_dir += ship_acc; if (ship_dir > max_ship_speed) { |