1
0
Fork 0
forked from len0rd/rockbox

lcd: Wrap anonymous union initializer in braces

GCC 4.9.4 is apparently smart enough to compile this, but 4.4.4 is not.

Change-Id: I186f969cbad4c701936ab738f585efea07421d2e
This commit is contained in:
Franklin Wei 2020-12-08 14:12:12 -05:00
parent 40b6897f4f
commit 792f05f82a

View file

@ -47,7 +47,9 @@ static long lcd_backdrop_offset IDATA_ATTR = 0;
/* shouldn't be changed unless you want system-wide framebuffer changes! */ /* shouldn't be changed unless you want system-wide framebuffer changes! */
struct frame_buffer_t lcd_framebuffer_default = struct frame_buffer_t lcd_framebuffer_default =
{ {
.fb_ptr = &lcd_static_framebuffer[0][0], {
.fb_ptr = &lcd_static_framebuffer[0][0]
},
.get_address_fn = &lcd_frameaddress_default, .get_address_fn = &lcd_frameaddress_default,
.stride = STRIDE_MAIN(LCD_WIDTH, LCD_HEIGHT), .stride = STRIDE_MAIN(LCD_WIDTH, LCD_HEIGHT),
.elems = (LCD_FBWIDTH*LCD_FBHEIGHT), .elems = (LCD_FBWIDTH*LCD_FBHEIGHT),