diff options
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r-- | apps/plugins/invadrox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index 57d6fabe8d..0b26581b30 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c | |||
@@ -776,12 +776,12 @@ bool aliens_down, aliens_right, hit_left_border, hit_right_border; | |||
776 | #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE | 776 | #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE |
777 | static inline fb_data get_pixel(int x, int y) | 777 | static inline fb_data get_pixel(int x, int y) |
778 | { | 778 | { |
779 | return rb->lcd_framebuffer[x*LCD_HEIGHT+y]; | 779 | return *rb->lcd_framebuffer[x*LCD_HEIGHT+y]; |
780 | } | 780 | } |
781 | #else | 781 | #else |
782 | static inline fb_data get_pixel(int x, int y) | 782 | static inline fb_data get_pixel(int x, int y) |
783 | { | 783 | { |
784 | return rb->lcd_framebuffer[ytab[y] + x]; | 784 | return *rb->lcd_framebuffer[ytab[y] + x]; |
785 | } | 785 | } |
786 | #endif | 786 | #endif |
787 | 787 | ||
@@ -794,7 +794,7 @@ static const unsigned char shifts[4] = { | |||
794 | /* Horizontal packing */ | 794 | /* Horizontal packing */ |
795 | static inline fb_data get_pixel(int x, int y) | 795 | static inline fb_data get_pixel(int x, int y) |
796 | { | 796 | { |
797 | return (rb->lcd_framebuffer[ytab[y] + (x >> 2)] >> shifts[x & 3]) & 3; | 797 | return (*rb->lcd_framebuffer[ytab[y] + (x >> 2)] >> shifts[x & 3]) & 3; |
798 | } | 798 | } |
799 | #else | 799 | #else |
800 | /* Vertical packing */ | 800 | /* Vertical packing */ |
@@ -803,7 +803,7 @@ static const unsigned char shifts[4] = { | |||
803 | }; | 803 | }; |
804 | static inline fb_data get_pixel(int x, int y) | 804 | static inline fb_data get_pixel(int x, int y) |
805 | { | 805 | { |
806 | return (rb->lcd_framebuffer[ytab[y] + x] >> shifts[y & 3]) & 3; | 806 | return (*rb->lcd_framebuffer[ytab[y] + x] >> shifts[y & 3]) & 3; |
807 | } | 807 | } |
808 | #endif /* Horizontal/Vertical packing */ | 808 | #endif /* Horizontal/Vertical packing */ |
809 | 809 | ||