1
0
Fork 0
forked from len0rd/rockbox

Ensure the 16-bit framebuffer is aligned on a 4-byte boundary

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7894 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-15 15:37:00 +00:00
parent d2546c3dc6
commit 1a316d655b

View file

@ -37,7 +37,7 @@
#define RGB_PACK(r,g,b) (htobe16(((r>>3)<<11)|((g>>2)<<5)|(b>>3))) #define RGB_PACK(r,g,b) (htobe16(((r>>3)<<11)|((g>>2)<<5)|(b>>3)))
/*** globals ***/ /*** globals ***/
fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (2))); fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (4)));
static unsigned fg_pattern; static unsigned fg_pattern;
static unsigned bg_pattern; static unsigned bg_pattern;