summaryrefslogtreecommitdiffstats
path: root/apps/plugins/invadrox.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-09-02 03:44:04 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-09-02 03:44:04 +0000
commita363507a43ad9f93d4f1583245f5ec47c3e3ecfa (patch)
tree1ff7bf521f758457d54889aa5585386a66cb3b0a /apps/plugins/invadrox.c
parentf0becad4a164f578167e845a446751923007f668 (diff)
downloadrockbox-a363507a43ad9f93d4f1583245f5ec47c3e3ecfa.tar.gz
rockbox-a363507a43ad9f93d4f1583245f5ec47c3e3ecfa.tar.bz2
rockbox-a363507a43ad9f93d4f1583245f5ec47c3e3ecfa.zip
Fix collision detection for invadrox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22605 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r--apps/plugins/invadrox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c
index fa1432e3f3..33ec343a87 100644
--- a/apps/plugins/invadrox.c
+++ b/apps/plugins/invadrox.c
@@ -638,7 +638,7 @@ bool aliens_down, aliens_right, hit_left_border, hit_right_border;
#if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE
inline fb_data get_pixel(int x, int y)
{
- return rb->lcd_framebuffer[LCD_HEIGHT*(LCD_WIDTH-1)-x*LCD_HEIGHT+y];
+ return rb->lcd_framebuffer[x*LCD_HEIGHT+y];
}
#else
inline fb_data get_pixel(int x, int y)